def _delete_pack_db_object(self, pack):
        try:
            pack_db = Pack.get_by_name(value=pack)
        except __HOLE__:
            self.logger.exception('Pack DB object not found')
            return

        try:
            Pack.delete(pack_db)
        except:
            self.logger.exception('Failed to remove DB object %s.', pack_db)
dataset/ETHPy150Open StackStorm/st2/contrib/packs/actions/pack_mgmt/unload.py/UnregisterPackAction._delete_pack_db_object