content/commands/cf.del.md
Deletes an item once from the filter.
If the item exists only once, it will be removed from the filter. If the item was added multiple times, it will still be present.
{{< note >}} Never use this command to delete an item unless you are certain you've added the item to the filter. Deleting an item you didn't previously add may corrupt the filter and cause false negatives. {{< /note >}}
is key name for a cuckoo filter.
</details> <details open><summary><code>item</code></summary>is an item to delete.
</details>O(n), where n is the number of sub-filters. Both alternative locations are
checked on all sub-filters.
{{< highlight bash >}} redis> CF.INSERT cf ITEMS item1 item2 item2
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Flexible & Annual</span> <span title="Supported">✅ Free & Fixed</nobr></span> | |
{{< multitabs id="cf-del-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
1 for successfully deleting an item, or 0 if no such item was found in the filter.-tab-sep-
One of the following:
true for successfully deleting an item, or false if no such item was found in the filter.{{< /multitabs >}}