

@classmethod
def delete_docs(cls, docs, all_or_nothing=False, empty_on_delete=False):
    super(_InvalidateCacheMixin, cls).bulk_delete(docs, all_or_nothing=all_or_nothing, empty_on_delete=empty_on_delete)
    for doc in docs:
        doc.clear_caches()
        invalidate_document(doc, couch_db=cls.get_db(), deleted=True)

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/cachehq/mixins.py _InvalidateCacheMixin.delete_docs/original