def delete(self):
    '\n        delete() executes the query by delegating to delete_by_query()\n        '
    es = get_connection(self._using)
    return AttrDict(es.delete_by_query(index=self._index, body=self.to_dict(), **self._params))
delete() executes the query by delegating to delete_by_query()
def delete(self):
    '\n        \n        '
    es = get_connection(self._using)
    return AttrDict(es.delete_by_query(index=self._index, body=self.to_dict(), **self._params))