cURL
curl --request DELETE \ --url https://console.vast.ai/api/v0/instances/{id}/ \ --header 'Authorization: Bearer <token>'
{ "success": true, "msg": "Instance destroyed successfully" }
Destroys/deletes an instance permanently. This is irreversible and will delete all data.
CLI Usage: vastai destroy instance <id>
vastai destroy instance <id>
API key must be provided in the Authorization header
ID of the instance to destroy
Instance destroyed successfully
Whether the destruction was successful
true
Optional status message
"Instance destroyed successfully"