Skip to main content
DELETE
/
api
/
v0
/
instances
/
{id}
/
ssh
/
{ssh_key_id}
detach ssh-key
curl --request DELETE \
  --url https://console.vast.ai/api/v0/instances/{id}/ssh/{ssh_key_id}/ \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "msg": "SSH key removed from instance."
}

Documentation Index

Fetch the complete documentation index at: https://vastai-80aa3a82-fix-google-validation-docs-404s.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

id
integer
required

ID of the instance to detach the SSH key from

Example:

99999

ssh_key_id
integer
required

Numeric ID of the SSH key to detach. Obtainable via show ssh-keys command

Example:

12345

Response

SSH key successfully detached

success
boolean
Example:

true

msg
string
Example:

"SSH key removed from instance."