From 2573d0d2ba5e289492881cd6d647d1d4f6542e18 Mon Sep 17 00:00:00 2001 From: Lior Kogan Date: Thu, 31 Jul 2025 10:27:02 +0300 Subject: [PATCH 1/2] CF.DEL - clearer note --- content/commands/cf.del.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/commands/cf.del.md b/content/commands/cf.del.md index c99435533b..a7011ebd03 100644 --- a/content/commands/cf.del.md +++ b/content/commands/cf.del.md @@ -35,10 +35,10 @@ 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: - -- Deleting an item that are not in the filter may delete a different item, resulting in false negatives. - +{{< note >}} +You should never use this command to delete from the filter an item that was not added to the filter. Deleting an item that is not in the filter may corrupt the filter. This could result in false negatives. +Practically, it means that using this command is safe only if you are absolutely sure (not just "probabilistically sure") that the item you are deleting was previously added to the filter. +{{< /note >}} ## Required arguments @@ -92,4 +92,4 @@ One of the following: * [Boolean reply]({{< relref "/develop/reference/protocol-spec#booleans" >}}) `true` for successfully deleting an item, or `false` if no such item was found in the filter. * [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: invalid arguments or wrong key type. -{{< /multitabs >}} \ No newline at end of file +{{< /multitabs >}} From 46ab7a71ebeb9f8f4a23d4849be8e1503a9e58de Mon Sep 17 00:00:00 2001 From: Lior Kogan Date: Thu, 31 Jul 2025 17:01:05 +0300 Subject: [PATCH 2/2] Update content/commands/cf.del.md Co-authored-by: David Dougherty --- content/commands/cf.del.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/content/commands/cf.del.md b/content/commands/cf.del.md index a7011ebd03..d4d0de9561 100644 --- a/content/commands/cf.del.md +++ b/content/commands/cf.del.md @@ -36,8 +36,7 @@ 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 >}} -You should never use this command to delete from the filter an item that was not added to the filter. Deleting an item that is not in the filter may corrupt the filter. This could result in false negatives. -Practically, it means that using this command is safe only if you are absolutely sure (not just "probabilistically sure") that the item you are deleting was previously added to the filter. +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 >}} ## Required arguments