

def delete(self):
    id = self._id
    try:
        super(_InvalidateCacheMixin, self).delete()
    except ResourceNotFound:
        logging.exception('Tried to delete cached doc %s but it was already deleted', self)
    self._doc['_id'] = id
    self.clear_caches()
    invalidate_document(self, couch_db=self.get_db(), deleted=True)

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/cachehq/mixins.py _InvalidateCacheMixin.delete/VarMisuse@43/78 `id`->`self`