---
search:
  tags:
    - App keys
    - DELETE
seo:
  description: >-
    Ends a key at once, including for connections that are open with it. A…
    Reference for the DELETE /_luna/tenants/{tenant}/keys/{id} endpoint in the
    Luna API.
sidebar:
  label: Revoke an app key
  badge: DELETE
title: Revoke an app key
type: openapi-operation
---
Ends a key at once, including for connections that are open with it. A tenant's two main credentials cannot be revoked. Rotate them instead, with an overlap of 0 to end the old one at once.

`DELETE /_luna/tenants/{tenant}/keys/{id}`

**Responses**

- `200` — Whether a key was revoked.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "revoked": true
}
```
