def delete_function(oid): if oid is not None: UserFunctionCache.flush_all() context = DBContext() context.delete_byid("um_function", oid) # delete related auth delete_auth_byidentity(oid, "UmFunction")
def delete_auth(oid): if oid is not None: context = DBContext() context.delete_byid("um_auth", oid)