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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

ID of the instance to detach the SSH key from

Example:

99999

key
integer
required

Numeric ID of the SSH key to detach

Example:

12345

Response

SSH key successfully detached

success
boolean
Example:

true

msg
string
Example:

"SSH key removed from instance."