def was_deleted(object):

    state = attributes.instance_state(object)
    return state.deleted
Return True if the given object was deleted
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/orm/util.py/was_deleted