docs: def delete(self):
          """
          Deletes the records in the current QuerySet.
          """
          del_query = self._clone()
  
          # The delete is actually 2 queries - one to find related objects,
          # and one to delete. Make sure that the discovery of related
          # objects is performed on the same database as the deletion.
          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)
          # Clear the result cache, in case this QuerySet gets reused.
          self._result_cache = None