Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

VSIM.DEL

Last updated
VSIM.DEL index key
Group
Vector search
Complexity
O(1)
Arity
3 (exactly, counting the command name)
Flags
write, fast
Keys
first 1, last 1, step 1
HotKV Cloud
All plans
On-Premise
no license needed

VSIM.DEL removes the vector stored under key from the vector index index. Searches stop returning it at once. A keyspace key of the same name is not affected.

Case RESP2 RESP3
Vector removed Integer 1 Integer 1
No vector for the key Integer 0 Integer 0

Error replies: ERR index 'name' not found.

127.0.0.1:6379> VSIM.CREATEINDEX points 3 METRIC L2
OK
127.0.0.1:6379> VSIM.SET points p:1 1 0 0
(integer) 1
127.0.0.1:6379> VSIM.DEL points p:1
(integer) 1
127.0.0.1:6379> VSIM.DEL points p:1
(integer) 0

HotKV-only command.

VSIM.SET, VSIM.GET, VSIM.DROPINDEX