---
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

## Changes

> 11 revisions in range; 1 not diffed.

- **2025-10-09** `740b73588ef4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kong/apis/kong-enterprise-admin-api/changes/:workspace/keys/:KeyIdOrName/delete.md)

---

[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-service-production.skmtc.workers.dev/v1/apis/kong/kong-enterprise-admin-api/revisions/28b1f8a59cdc/schema)
