class_docstr: This handler handles connection and execution of the Xata statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","Xata","statements","."]
code: def delete(
      self, table_name: str, conditions: List[FilterCondition] = None
  ) -> HandlerResponse:
      ids = []
      for condition in conditions:
          if condition.op == FilterOperator.EQUAL:
              ids.append(condition.value)
          else:
              return Response(
                  resp_type=RESPONSE_TYPE.ERROR,
                  error_message="You can only delete using '=' operator ID one at a time!",
              )
      try:
          for id in ids:
              resp = self._client.records().delete(table_name, id)
              if not resp.is_success():
                  raise Exception(resp["message"])
      except Exception as e:
          return Response(
              resp_type=RESPONSE_TYPE.ERROR,
              error_message=f"Unable to run DELETE records: {e}",
          )
      return Response(resp_type=RESPONSE_TYPE.OK)
  
imports: from collections import OrderedDict
  from typing import List, Optional
  import pandas
  import json
  import xata
  from xata.helpers import BulkProcessor
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb.integrations.libs.response import RESPONSE_TYPE
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb.integrations.libs.vectordatabase_handler import FilterCondition, FilterOperator, TableField, VectorStoreHandler
  from mindsdb.utilities import log
label_desc: Use image node_id 15 for calling the XataHandler obj's underlying member method code with example usage: obj.delete(table_name, conditions) and returns: Response, Response, Response