---
title: "Delete a SSH key"
method: DELETE
path: "/users/{selected_user}/ssh-keys/{key_id}"
tags: ["SSH"]
---

# Delete a SSH key

`DELETE /users/{selected_user}/ssh-keys/{key_id}`

Deletes a specific SSH public key from a user's account.

## Response `204`

The key has been deleted

## Other responses

- `400` — If the submitted key or related value is invalid
- `403` — If the current user does not have permission to add a key for the specified user
- `404` — If the specified user does not exist

---

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