---
title: "Delete access token"
method: DELETE
path: "/auth/api_key/{token_id}"
tags: ["Access Tokens"]
---

# Delete access token

`DELETE /auth/api_key/{token_id}`

Deletes an access token by its ID. The token is immediately invalidated and can no longer be used for authentication.

Requires `auth_enabled=true` and an admin access token or admin JWT.

## Path parameters

- `token_id` integer, required

## Headers

- `Authorization` string, required

## Response `200`

Token deleted successfully.

- StatusResponse
  - `status` string — Operation result status.
  - `message` string — Human-readable status message.

## Other responses

- `401` — Missing or invalid authorization credentials.
- `403` — Authentication is not enabled on the server.
- `404` — Token not found.

## Changes

- **2026-06-27** `1be75c43c359` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/actiancorp/apis/actian-vectorai-db-authentication-api/changes/auth/api_key/:token_id/delete.md)

---

[API](https://skmtc.dev/actiancorp/apis/actian-vectorai-db-authentication-api.md) · [All operations](https://skmtc.dev/actiancorp/apis/actian-vectorai-db-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/actiancorp/actian-vectorai-db-authentication-api/revisions/1be75c43c359/schema)
