---
title: "Delete an SSH Key"
method: DELETE
path: "/v2/account/keys/{ssh_key_identifier}"
tags: ["DigitalOcean-public.v2-new_SSH Keys"]
---

# Delete an SSH Key

`DELETE /v2/account/keys/{ssh_key_identifier}`

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.

## Path parameters

- `ssh_key_identifier` union, required
  - integer — A unique identification number for this key. Can be used to embed a specific SSH key into a Droplet.
  - string — 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.

## Response `204`

The action was successful and the response body is empty.

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

---

[API](https://skmtc.net/digitalocean/apis/digitalocean-api.md) · [All operations](https://skmtc.net/digitalocean/apis/digitalocean-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/digitalocean/digitalocean-api/revisions/cb3bf9b21459/schema)
