Beispiel #1
0
def delete_user(userid):
    """Delete a user"""
    udal = UserDAL(app.config['DB'])
    deletion = udal.delete(userid)
    if deletion:
        return ''
    else:
        return 'Not Found', status.HTTP_404_NOT_FOUND
Beispiel #2
0
def delete_group(group_name):
    """Delete a group"""
    gdal = UserDAL(app.config['DB'])

    deletion = gdal.delete(group_name)
    if deletion:
        return ''
    else:
        return 'Not Found', status.HTTP_404_NOT_FOUND