---
title: "Delete Api Key"
method: DELETE
path: "/api/v1/config/api-keys/{key_id}"
tags: ["api-keys"]
---

# Delete Api Key

`DELETE /api/v1/config/api-keys/{key_id}`

## Request

- Base URL: `https://memory.kagura-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.kagura-ai.com/api/v1/config/api-keys/{key_id}`
- Auth: none declared

Permanently delete an API key.

Issue #112: Delete by ID directly to avoid ambiguity with duplicate names across contexts.

WARNING: Hard delete. Use POST /{key_id}/revoke for soft delete.

## Path parameters

- `key_id` string, required: Public id of the API key (`akey_` + 22 base62 characters).

## Headers

- `authorization` string, nullable

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/aa9df1a21db9?raw)
