---
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/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/versions/4ec8bd2515c5/schema)
