def METHOD_NAME() -> Response:
    verify_logged_in()
    u = get_current_user_object()
    if not u.is_email_user:
        raise RouteException(
            "Only users registered via email can delete their account manually."
        )
    do_soft_delete(u)
    db.session.commit()
    clear_session()
    flash("Your account has been deleted.")
    return ok_response()