---
title: "Delete a Key"
method: DELETE
path: "/{workspace}/keys/{KeyIdOrName}"
tags: ["Keys"]
---

# Delete a Key

`DELETE /{workspace}/keys/{KeyIdOrName}`

Delete a Key

## Path parameters

- `KeyIdOrName` string, required
- `workspace` string, required

## Response `204`

Successfully deleted Key or the resource didn't exist

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/kong/apis/kong-enterprise-admin-api.md) · [All operations](https://skmtc.net/kong/apis/kong-enterprise-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/kong-enterprise-admin-api/revisions/28b1f8a59cdc/schema)
