# VSIM.DEL

> Remove a key's vector from a vector index.

URL: https://docs.hotkv.com/commands/vsim-del/

```
VSIM.DEL index key
```

- Group: Vector search
- Complexity: O(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

| 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

```
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
```

## Compatibility

HotKV-only command.

## See also

[VSIM.SET](https://docs.hotkv.com/commands/vsim-set/index.md), [VSIM.GET](https://docs.hotkv.com/commands/vsim-get/index.md), [VSIM.DROPINDEX](https://docs.hotkv.com/commands/vsim-dropindex/index.md)