---
categories:
- docs
- develop
- stack
- oss
- rs
- rc
- oss
- kubernetes
- clients
complexity: O(log(N)) for each element removed, where N is the number of elements in the vector set.
description: Remove an element from a vector set.
group: vector_set
hidden: false
linkTitle: VREM
railroad_diagram: /images/railroad/vrem.svg
since: 8.0.0
summary: Remove an element from a vector set.
syntax_fmt: "VREM key element"
title: VREM
---
Remove an element from a vector set.
```shell
VADD vset VALUES 3 1 0 1 bar
(integer) 1
VREM vset bar
(integer) 1
VREM vset bar
(integer) 0
```
`VREM` reclaims memory immediately. It does not use tombstones or logical deletions, making it safe to use in long-running applications that frequently update the same vector set.
## Required arguments
key
is the name of the key that holds the vector set.
element
is the name of the element to remove from the vector set.
## Related topics
- [Vector sets]({{< relref "/develop/data-types/vector-sets" >}})
## Redis Software and Redis Cloud compatibility
| Redis
Software | Redis
Cloud | Notes |
|:----------------------|:-----------------|:------|
| ✅ Standard
✅ Active-Active | ✅ Standard
✅ Active-Active | |
## Return information
{{< multitabs id="vrem-return-info"
tab1="RESP2"
tab2="RESP3" >}}
[Integer reply](../../develop/reference/protocol-spec#integers): 0 if either element or key do not exist; 1 if the element was removed.
-tab-sep-
[Boolean reply](../../develop/reference/protocol-spec#booleans): false if either element or key do not exist; true if the element was removed.
{{< /multitabs >}}