---
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/atlassian/apis/bitbucket-api.md) · [All operations](https://skmtc.net/atlassian/apis/bitbucket-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/bitbucket-api/versions/8c7911c0a910/schema)
