Usage
Options
ID of the 2FA method to delete (see
vastai tfa status)2FA code from your Authenticator app, SMS, or Email to authorize deletion
2FA Method type. Only use when you only have one method of this type
Allowed values: email, sms, totp
Secret token (required for SMS or Email 2FA)
One-time backup code (alternative to regular 2FA code)
2FA Method ID to use if you have more than one of the same type (‘id’ from
tfa status)Description
Remove a 2FA method from your account. This action requires 2FA verification to prevent unauthorized removals.NOTE: If you do not specify —id-to-delete, the system will attempt to delete the method you are using to authenticate. However please be advised, it is much safer to specify the ID to avoid confusion if you have multiple methods.
Use
vastai tfa status to see your active methods and their IDs.
Examples
Global Options
The following options are available for all commands:| Option | Description |
|---|---|
--url URL | Server REST API URL |
--retry N | Retry limit |
--raw | Output machine-readable JSON |
--explain | Verbose explanation of API calls |
--api-key KEY | API key (defaults to ~/.config/vastai/vast_api_key) |