content/commands/vrem.md
Remove an element from a vector set.
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.
is the name of the key that holds the vector set.
</details> <details open> <summary><code>element</code></summary>is the name of the element to remove from the vector set.
</details>| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | |
{{< multitabs id="vrem-return-info" tab1="RESP2" tab2="RESP3" >}}
Integer reply: 0 if either element or key do not exist; 1 if the element was removed.
-tab-sep-
Boolean reply: false if either element or key do not exist; true if the element was removed.
{{< /multitabs >}}