--- acl_categories: - '@search' - '@write' arguments: - name: key type: string - name: string type: string categories: - docs - develop - stack - oss - rs - rc - oss - kubernetes - clients complexity: O(1) description: Deletes a string from a suggestion index group: suggestion hidden: false linkTitle: FT.SUGDEL module: Search railroad_diagram: /images/railroad/ft.sugdel.svg since: 1.0.0 stack_path: docs/interact/search-and-query summary: Deletes a string from a suggestion index syntax_fmt: FT.SUGDEL key string title: FT.SUGDEL --- Delete a string from a suggestion index [Examples](#examples) ## Required arguments
key is suggestion dictionary key.
string is suggestion string to index.
## Examples
Delete a string from a suggestion index {{< highlight bash >}} 127.0.0.1:6379> FT.SUGDEL sug "hello" (integer) 1 127.0.0.1:6379> FT.SUGDEL sug "hello" (integer) 0 {{< / highlight >}}
## Redis Software and Redis Cloud compatibility | Redis
Software | Redis
Cloud | Notes | |:----------------------|:-----------------|:------| | ✅ Standard
❌ Active-Active | ❌ Standard
❌ Active-Active | Not supported on clustered databases. | ## Return information {{< multitabs id="ft-sugdel-return-info" tab1="RESP2" tab2="RESP3" >}} [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}}): 1 if the suggestion was deleted, 0 if it was not found. -tab-sep- [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}}): 1 if the suggestion was deleted, 0 if it was not found. {{< /multitabs >}} ## See also [`FT.SUGGET`]({{< relref "commands/ft.sugget/" >}}) | [`FT.SUGADD`]({{< relref "commands/ft.sugadd/" >}}) | [`FT.SUGLEN`]({{< relref "commands/ft.suglen/" >}}) ## Related topics [RediSearch]({{< relref "/develop/ai/search-and-query/" >}})