def delete_user(): j = request.get_json() c = DatabaseConnection() auth = check_auth(j, c) if auth: return auth c.delete_user(j["username"]) return {"msg": "successfully deleted user"}, 200