MCPcopy Create free account
hub / github.com/alephdata/aleph / delete_by_collection

Method delete_by_collection

aleph/model/document.py:104–107  ·  view source on GitHub ↗
(cls, collection_id)

Source from the content-addressed store, hash-verified

102
103 @classmethod
104 def delete_by_collection(cls, collection_id):
105 pq = db.session.query(cls)
106 pq = pq.filter(cls.collection_id == collection_id)
107 pq.delete(synchronize_session=False)
108
109 @classmethod
110 def save(

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected