Skip to main content
Destroy an instance (irreversible, deletes data)

Usage

vastai destroy instance id [-h] [--api-key API_KEY] [--raw]

Arguments

id
integer
required
id of instance to delete

Description

Perfoms the same action as pressing the “DESTROY” button on the website at https://console.vast.ai/instances/ Example: vastai destroy instance 4242

Global Options

The following options are available for all commands:
OptionDescription
--url URLServer REST API URL
--retry NRetry limit
--rawOutput machine-readable JSON
--explainVerbose explanation of API calls
--api-key KEYAPI key (defaults to ~/.config/vastai/vast_api_key)