API Documentation

Delete SSH Key

Deletes an SSH key from a VPS. If the deleted key was the active web terminal key, the terminal key setting is cleared.

Required scope: vps:manage

Path Parameters

Parameter Type Description
id string The VPS ID
keyId string The ID of the SSH key to delete

Headers

Header Required Value
Authorization Yes Bearer YOUR_API_KEY

Response

{
  "data": {
    "keyId": "abc123",
    "deleted": true
  }
}

Errors

Status Code Description
404 NOT_FOUND VPS not found or no access
502 PROVIDER_ERROR Key deletion failed at the provider

Example

curl -X DELETE "https://hosting.site.quest/api/v1/vps/699cdea2ab57a244bb5273fd/ssh/keys/abc123" \
  -H "Authorization: Bearer YOUR_API_KEY"

MCP

This action is also available via the delete_ssh_key MCP tool.