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

# Delete an API key

`DELETE /v1/keys/{key}`

Revokes an API key immediately. The key stops working within a short cache window.

## Path parameters

- `key` string, required

## Response `200`

The key was deleted.

- object
  - `data` object
    - `id` string

## Other responses

- `401` — Missing or invalid API key credentials.
- `404` — The resource does not exist in your organization.

---

[API](https://skmtc.net/metal/apis/metal-api.md) · [All operations](https://skmtc.net/metal/apis/metal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metal/metal-api/revisions/afb7b675d5b2/schema)
