v8

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-165266542.4 MB
DigitalOcean-public.v2-new_SSH Keys

Delete an SSH Key

To destroy a public SSH key that you have in your account, send a DELETE request to /v2/account/keys/$KEY_ID or /v2/account/keys/$KEY_FINGERPRINT. A 204 status will be returned, indicating that the action was successful and that the response body is empty.

delete/v2/account/keys/{ssh_key_identifier}

Path parameters

integer required

A unique identification number for this key. Can be used to embed a specific SSH key into a Droplet.

OR
string required

A unique identifier that differentiates this key from other keys using a format that SSH recognizes. The fingerprint is created when the key is added to your account.

Example:512189

Either the ID or the fingerprint of an existing SSH key.

Response

The action was successful and the response body is empty.