'Deletes the records in the current QuerySet.'

def delete(self):

    del_query = self._clone()
    del_query._clear_ordering()
    connection = self.model._meta.dj_connection
    connection.connection.delete_by_query(indices=connection.database, doc_types=self.model._meta.db_table, query=del_query._build_query())
    connection.connection.indices.refresh(indices=connection.database)
    self._result_cache = None
