---
title: "Delete an API-key"
method: DELETE
path: "/key-auths/{KeyAuthId}"
tags: ["API-keys"]
---

# Delete an API-key

`DELETE /key-auths/{KeyAuthId}`

Delete an API-key

## Path parameters

- `KeyAuthId` string, required

## Response `204`

Successfully deleted API-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-service-production.skmtc.workers.dev/v1/apis/kong/kong-enterprise-admin-api/revisions/5bd52189d290/schema)
