VSIM.DEL
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.
Return value
Section titled “Return value”| 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.
Examples
Section titled “Examples”127.0.0.1:6379> VSIM.CREATEINDEX points 3 METRIC L2OK127.0.0.1:6379> VSIM.SET points p:1 1 0 0(integer) 1127.0.0.1:6379> VSIM.DEL points p:1(integer) 1127.0.0.1:6379> VSIM.DEL points p:1(integer) 0Compatibility
Section titled “Compatibility”HotKV-only command.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.