Back to Redis

FT.DICTDEL

content/commands/ft.dictdel.md

latest1.5 KB
Original Source

Delete terms from a dictionary

Examples

Required arguments

<details open> <summary><code>dict</code></summary>

is dictionary name.

</details> <details open> <summary><code>term</code></summary>

term to delete from the dictionary.

</details>

Examples

<details open> <summary><b>Delete terms from a dictionary</b></summary>

{{< highlight bash >}} 127.0.0.1:6379> FT.DICTDEL dict foo bar "hello world" (integer) 3 {{< / highlight >}}

</details>

Redis Software and Redis Cloud compatibility

| Redis Software | Redis Cloud Flexible & Annual | Redis Cloud Free & Fixed | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:-----------------|:------| | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Supported</nobr></span> | |

Return information

{{< multitabs id="ft-dictdel-return-info" tab1="RESP2" tab2="RESP3" >}}

[Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}}): the number of terms deleted from the dictionary.

-tab-sep-

[Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}}): the number of terms deleted from the dictionary.

{{< /multitabs >}}

See also

[FT.DICTADD]({{< relref "commands/ft.dictadd/" >}}) | [FT.DICTDUMP]({{< relref "commands/ft.dictdump/" >}})

[RediSearch]({{< relref "/develop/ai/search-and-query/" >}})