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

# Delete a Key

`DELETE /keys/{KeyIdOrName}`

Delete a Key

## Path parameters

- `KeyIdOrName` string, required

## Response `204`

Successfully deleted Key or the resource didn't exist

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.dev/kong/apis/kong-enterprise-admin-api.md) · [All operations](https://skmtc.dev/kong/apis/kong-enterprise-admin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kong/apis/kong-enterprise-admin-api/revisions/99e71588eb61?raw)
