def soft_delete(self, session):
        self.deleted = self.id
        self.deleted_at = timeutils.utcnow()
        self.save(session=session)
Mark this object as deleted.
dataset/ETHPy150Open openstack/oslo.db/oslo_db/sqlalchemy/models.py/SoftDeleteMixin.soft_delete