class_docstr: Search commands.
docstr: Delete a string from the AutoCompleter index.
  Returns 1 if the string was found and deleted, 0 otherwise.
  
  For more information see `FT.SUGDEL <https://redis.io/commands/ft.sugdel>`_.
docstr_tok: ["Delete","a","string","from","the","AutoCompleter","index",".","Returns","1","if","the","string","was","found","and","deleted",",","0","otherwise",".","For","more","information","see","`","FT.SUGDEL","<","https",":","\/\/redis.io\/commands\/ft.sugdel",">","`","_","."]
code: def sugdel(self, key: str, string: str) -> int:
      """
      Delete a string from the AutoCompleter index.
      Returns 1 if the string was found and deleted, 0 otherwise.
  
      For more information see `FT.SUGDEL <https://redis.io/commands/ft.sugdel>`_.
      """  # noqa
      return self.execute_command(SUGDEL_COMMAND, key, string)
  
imports: import itertools
  import time
  from typing import Dict, List, Optional, Union
  from redis.client import Pipeline
  from redis.utils import deprecated_function
  from ..helpers import get_protocol_version, parse_to_dict
  from ._util import to_string
  from .aggregation import AggregateRequest, AggregateResult, Cursor
  from .document import Document
  from .query import Query
  from .result import Result
  from .suggestion import SuggestionParser
label_desc: Use image node_id 41 for calling the SearchCommands obj's underlying member method code with example usage: obj.sugdel(key, string) and returns: self