{
  "id": "cf.del",
  "title": "CF.DEL",
  "url": "https://redis.io/docs/latest/commands/cf.del/",
  "summary": "Deletes an item from a Cuckoo Filter",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-04-09T10:29:34-04:00",
  "page_type": "content",
  "content_hash": "e4d7082c35e15ce6147949000e6cb7fa2d3b0697dba4601e8164454a8d1a399b",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Deletes an item once from the filter.\n\nIf the item exists only once, it will be removed from the filter. If the item was added multiple times, it will still be present.\n\n\nNever 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."
    },
    {
      "id": "required-arguments",
      "title": "Required arguments",
      "role": "content",
      "text": "<details open><summary><code>key</code></summary>\n\nis key name for a cuckoo filter.\n</details>\n\n<details open><summary><code>item</code></summary>\n\nis an item to delete.\n</details>"
    },
    {
      "id": "complexity",
      "title": "Complexity",
      "role": "performance",
      "text": "O(n), where n is the number of `sub-filters`. Both alternative locations are\nchecked on all `sub-filters`."
    },
    {
      "id": "examples",
      "title": "Examples",
      "role": "example",
      "text": "redis> CF.INSERT cf ITEMS item1 item2 item2\n1) (integer) 1\n2) (integer) 1\n3) (integer) 1\nredis> CF.DEL cf item1\n(integer) 1\nredis> CF.DEL cf item1\n(integer) 0\nredis> CF.DEL cf item2\n(integer) 1\nredis> CF.DEL cf item2\n(integer) 1\nredis> CF.DEL cf item2\n(integer) 0"
    },
    {
      "id": "redis-software-and-redis-cloud-compatibility",
      "title": "Redis Software and Redis Cloud compatibility",
      "role": "content",
      "text": "| Redis<br />Software | Redis<br />Cloud | <span style=\"min-width: 9em; display: table-cell\">Notes</span> |\n|:----------------------|:-----------------|:------|\n| <span title=\"Supported\">&#x2705; Supported</span><br /> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> |  |"
    },
    {
      "id": "return-information",
      "title": "Return information",
      "role": "returns",
      "text": "**RESP2:**\n\nOne of the following:\n* [Integer reply]() `1` for successfully deleting an item, or `0` if no such item was found in the filter.\n* [Simple error reply]() in these cases: invalid arguments or wrong key type.\n\n**RESP3:**\n\nOne of the following:\n* [Boolean reply]() `true` for successfully deleting an item, or `false` if no such item was found in the filter.\n* [Simple error reply]() in these cases: invalid arguments or wrong key type."
    }
  ],
  "examples": []
}
