def delete(self, id):
    user = User.query.filter_by(uuid=id).first()
    if (user is None):
        api.abort(404, 'User does not exist.')
    db.session.delete(user)
    db.session.commit()
    return ({'msg': 'ok'}, 200)
def delete(self, id):
    user = User.query.filter_by(uuid=id).first()
    if (user is None):
        api.abort(404, 'User does not exist.')
    db.session.delete(user)
    db.session.commit()
    return ({'msg': 'ok'}, 200)