def delete_registration(self, args):
    if ('id' not in args):
        return bad_request('id not invalid')
    try:
        register = self.db.find_first_object_by(UserHackathonRel, (id == args['id']))
        if (register is not None):
            self.db.delete_object(register)
        return ok()
    except Exception as ex:
        self.log.error(ex)
        return internal_server_error(('failed in delete register: %s' % args['id']))
def delete_registration(self, args):
    if ('id' not in args):
        return bad_request('id not invalid')
    try:
        register = self.db.find_first_object_by(UserHackathonRel, (id == args['id']))
        if (register is not None):
            self.db.delete_object(register)
        return ok()
    except Exception as ex:
        self.log.error(ex)
        return internal_server_error(('failed in delete register: %s' % args['id']))