FT.SUGDEL key string
Available in: Redis Stack
Time complexity: O(1)
Deletes a string from a suggestion index.
Parameters
- key: the suggestion dictionary key.
- string: the string to delete
Returns
Integer reply: 1 if the string was found and deleted, 0 otherwise.
Examples
redis> FT.SUGDEL sug "hello"
(integer) 1
redis> FT.SUGDEL sug "hello"
(integer) 0