---
title: "Delete External Key"
method: DELETE
path: "/api/v1/external-keys/{key_name}"
tags: ["external-keys"]
---

# Delete External Key

`DELETE /api/v1/external-keys/{key_name}`

## 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/external-keys/{key_name}`
- Auth: none declared

Delete an external API key from the current workspace.

Issue #381: owner-only (router-level dependency).
Issue #385: workspace-scoped lookup by (key_name, workspace_id); any owner
can delete any key registered in the workspace.
Issue #149 / #1613: a protected key is refused with 400. Membership in
PROTECTED_KEYS alone no longer protects a key — see
services/external_key_protection.py.

## Path parameters

- `key_name` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

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