# shellcheck shell=dash

___x_cmd_hub_token_rm(){
    local token="$1"
    [ -n "$token" ] || M='Provide token' N=hub log:ret:64
    ___x_cmd_hub_u_curl delete "/api/v0/token/$token" || {
        ___x_cmd_hub_u_handle_resp false "Failed to remove token:"
        return 1
    }
    ___x_cmd_hub_u_handle_resp true "Remove token successfully"
}