def delete(self):
del_query = self._clone()<EOL>del_query._clear_ordering()<EOL>connection = self.model._meta.dj_connection<EOL>connection.connection.delete_by_query(indices=connection.database, doc_types=self.model._meta.db_table,<EOL>query=del_query._build_query())<EOL>connection.connection.indices.refresh(indices=connection.database)<EOL>self._result_cache = None<EOL>
Deletes the records in the current QuerySet.