Skip to content

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

idstringrequired
The saved SSH key ID (ssh_…).

Example

DELETE /api/v2/ssh-keys/{id}
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.

400Invalid request. The response body is an RFC 7807 Problem Details document.
401Unauthorized. Authentication is required.
403Forbidden. The caller lacks a required scope or does not own the resource.
404Not found. The resource does not exist or is not owned by the caller; code is ssh_key_not_found.
429Too many requests. Wait the number of seconds in Retry-After before you try again.
500Internal error. Retry later or contact support if the issue persists.
502Upstream failure. A dependent provider request failed; the Problem Details code is upstream_failed. Retry later or contact support if the issue persists.