---
title: "Delete a GPG key"
method: DELETE
path: "/users/{selected_user}/gpg-keys/{fingerprint}"
tags: ["GPG"]
---

# Delete a GPG key

`DELETE /users/{selected_user}/gpg-keys/{fingerprint}`

Deletes a specific GPG 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 delete a key for the specified user, or the submitted key is a subkey
- `404` — If the specified key 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)
