MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / delete

Method delete

tortoise/queryset.py:744–756  ·  view source on GitHub ↗

Delete all objects in QuerySet.

(self)

Source from the content-addressed store, hash-verified

742 )
743
744 def delete(self) -> DeleteQuery:
745 """
746 Delete all objects in QuerySet.
747 """
748 return DeleteQuery(
749 db=self._db,
750 model=self.model,
751 q_objects=self._q_objects,
752 annotations=self._annotations,
753 custom_filters=self._custom_filters,
754 limit=self._limit,
755 orderings=self._orderings,
756 )
757
758 def update(self, **kwargs: Any) -> UpdateQuery:
759 """

Callers

nothing calls this directly

Calls 1

DeleteQueryClass · 0.85

Tested by

no test coverage detected