---
title: "Delete a key from a provider"
method: DELETE
path: "/providers/{providerId}/keys/{aliasOrKid}"
tags: ["Providers"]
---

# Delete a key from a provider

`DELETE /providers/{providerId}/keys/{aliasOrKid}`

Permanently removes the key identified by `aliasOrKid` from the provider identified by `providerId`. The `aliasOrKid` may be the key's alias or its kid. Returns 204 with no body on success, or 404 if the provider id is unknown or no matching key exists.

## Response `204`

Key deleted successfully

## Other responses

- `404` — The requested resource was not found.
- `500` — An unexpected error occurred on the server.

---

[API](https://skmtc.dev/sphereon-opensource/apis/kms-rest-server-api.md) · [All operations](https://skmtc.dev/sphereon-opensource/apis/kms-rest-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sphereon-opensource/kms-rest-server-api/revisions/e9136cbde1c1/schema)
