Delete a saved SSH key
DELETE /api/v2/ssh-keys/{id}
Deletes an SSH key saved on your Hostup account. You can no longer pick it when you order a VPS or add keys to a VPS. A VPS that already has the key keeps it. Change the keys on a VPS with PATCH /api/v2/vps/{id}/ssh-access.
Authentication: An API key with the scope write:account. About keys and scopes
Request
Path parameters
idstringrequiredThe saved SSH key ID (
ssh_…).Example
curl -X DELETE "https://cloud.hostup.se/api/v2/ssh-keys/ssh_01hxa3b4c5d6e7f8g9h0j1k2m3" \ -H "Authorization: Bearer $HOSTUP_API_KEY"Responses
204 The key was deleted. The response has no body.
Errors
Errors are Problem Details with a stable code. Branch on the code, not on the text.
| 400 | Invalid request. The response body is an RFC 7807 Problem Details document. |
| 401 | Unauthorized. Authentication is required. |
| 403 | Forbidden. The caller lacks a required scope or does not own the resource. |
| 404 | Not found. The resource does not exist or is not owned by the caller; code is ssh_key_not_found. |
| 429 | Too many requests. Wait the number of seconds in Retry-After before you try again. |
| 500 | Internal error. Retry later or contact support if the issue persists. |
| 502 | Upstream failure. A dependent provider request failed; the Problem Details code is upstream_failed. Retry later or contact support if the issue persists. |