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.
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
| Parameter | Type | Description |
|---|---|---|
id |
string | The VPS ID |
keyId |
string | The ID of the SSH key to delete |
| Header | Required | Value |
|---|---|---|
Authorization |
Yes | Bearer YOUR_API_KEY |
{
"data": {
"keyId": "abc123",
"deleted": true
}
}
| Status | Code | Description |
|---|---|---|
| 404 | NOT_FOUND |
VPS not found or no access |
| 502 | PROVIDER_ERROR |
Key deletion failed at the provider |
curl -X DELETE "https://hosting.site.quest/api/v1/vps/699cdea2ab57a244bb5273fd/ssh/keys/abc123" \
-H "Authorization: Bearer YOUR_API_KEY"
This action is also available via the delete_ssh_key MCP tool.