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

# Delete API Key

`DELETE /keys/{key_id}`

Deletes an API key by its ID. This action is irreversible.

**Requirements:**
- Authentication required via admin API key
- Key must belong to the authenticated user's workspace

**Key Features:**
- Permanently revoke API key access
- Idempotent operation (safe to retry)
- Optional Idempotency-Key header for safe retries

**Important:**
- This action cannot be undone
- Any applications using this key will immediately lose access
- Returns 204 even if the key doesn't exist (idempotent behavior)

**Common Use Cases:**
- Revoke compromised keys
- Clean up unused keys
- Implement key rotation (delete old, create new)
- Offboard team members

## Path parameters

- `key_id` string, required — Unique identifier of the API key to delete

## Headers

- `Idempotency-Key` string — Optional idempotency key for safe request retries

## Response `204`

API key deleted successfully (or already deleted)

## Other responses

- `401` — Authentication required
- `403` — Access denied
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.dev/fal/apis/platform-apis.md) · [All operations](https://skmtc.dev/fal/apis/platform-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fal/platform-apis/revisions/0c7dabf80b00/schema)
