Skip to content

Delete an SSH key

DELETE/v1/ssh-keys/{uid}

Deletes an SSH key.

  • Your own keys can be deleted from any workspace you have the developer role or higher in, including keys you added in another workspace.
  • A key another member added can only be deleted by an owner or admin of the workspace it was added in, and only through that workspace. Otherwise the call returns 403 (you can only delete your own ssh keys).

Deleting a key only removes it from RumptyCloud, so it can no longer be chosen for new VMs. This endpoint does not change VMs that already have the key installed.

Requires the owner, admin or developer role. Viewers get 403.

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Path parameters

uidstringRequired

The key's uid.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The key was deleted.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

Errors

StatusMeaning
400The request was malformed or failed validation.
401The API key is missing, invalid, expired or revoked.
403Your role cannot delete keys, or the key belongs to another member and you are not an owner or admin of this workspace.
404No key with this uid is usable in this workspace (ssh key not found): it is neither yours nor added to this workspace.

Errors use the standard error format.