def METHOD_NAME():
    group = request.args.get("group_name")
    if not group:
        flash("No group name provided")
    elif current_user.remove_group(group):
        flash(f"Successfully removed group {group}")
    else:
        flash("An error occurred removing group")
    return redirect(url_for("user_settings") + "?section=tracker")