code: def delete(self, record):
          
          index, doc_type = self.record_to_index(record)
  
          return self.client.delete(
              id=str(record.id),
              index=index,
              doc_type=doc_type,
          )
docs: Delete a record.
  
          :param record: Record instance.