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

# Delete an API key

`DELETE /keys/{hash}`

Delete an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys), or with a Connect client secret. A client secret reaches only the keys that same client created; any other key responds as if it does not exist.

## Path parameters

- `hash` string, required — The hash identifier of the API key to delete

## Response `200`

API key deleted successfully

- object
  - `deleted` true, required — Confirmation that the API key was deleted

## Other responses

- `401` — Unauthorized - Authentication required or invalid credentials
- `404` — Not Found - Resource does not exist
- `429` — Too Many Requests - Rate limit exceeded
- `500` — Internal Server Error - Unexpected server error

---

[API](https://skmtc.dev/openrouterteam/apis/openrouter-api.md) · [All operations](https://skmtc.dev/openrouterteam/apis/openrouter-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openrouterteam/openrouter-api/revisions/f2a6470d6ada/schema)
