---
title: "Revoke anon key"
method: DELETE
path: "/projects/{id}/anon-keys/{keyId}"
tags: ["Anon Keys"]
---

# Revoke anon key

`DELETE /projects/{id}/anon-keys/{keyId}`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/anon-keys/{keyId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Revokes key - it will immediately stop working

## Path parameters

- `id` string, uuid, required
- `keyId` string, uuid, required

## Response `204`

Key revoked

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Key not found
- `409`: Cannot delete the project's default anon key
- `500`: Internal server error

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 3 breaking, 4 info
  - added the new path request parameter `id`
  - the response's body type changed from no type to `object` for status `409`
  - the response's body type changed from no type to `object` for status `500`
  - added the optional property `code` to the response with the `409` status
  - …3 more
- **2026-08-27** `bb44e98aba2e`: 4 breaking, 3 warning
  - the response's body type changed from `object` to no type for status `409`
  - the response's body type changed from `object` to no type for status `500`
  - removed the required property `error` from the response with the `409` status
  - removed the required property `error` from the response with the `500` status
  - …3 more
- **2026-07-27** `bb52784e098a`: 2 info
  - added the optional property `code` to the response with the `409` status
  - added the optional property `code` to the response with the `500` status

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/anon-keys/:keyId/delete.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
