---
title: "Delete Token"
method: DELETE
path: "/api/users/{username}/tokens/{id}"
tags: ["Users"]
---

# Delete Token

`DELETE /api/users/{username}/tokens/{id}`

## Path parameters

- `username` string, required
- `id` string, required

## Response `200`

Token deleted

- TokenResponse
  - `id` string, required
  - `token` string, required — Only available if the token was freshly created.
  - `username` string — Username of the token.
  - `client_id` string — Client ID of the token.
  - `scope` 'admin' | 'install' | 'update' | 'read', required — Permission scope of the token.
  - `grant_type` 'one-time' — Grant type of the token
  - `expires` integer — Timestamp when the one-time token expires.
  - `url` string — Login URL for passwordless authentication tokens.

## Changes

- **2025-03-06** `4dc3bf84edf7` — 3 info
  - the endpoint scheme security `CookieAuthentication` was added to the API
  - the endpoint scheme security `TokenAuthentication` was added to the API
  - removed the `invitation` enum value from the `grant_type` response property for the response status `200`
- **2024-11-06** `e06d9f9dee25` — 2 breaking, 1 warning
  - the response property `client_id` became optional for the status `200`
  - the response property `username` became optional for the status `200`
  - added the new `invitation` enum value to the `grant_type` response property for the response status `200`
- **2024-11-02** `f68de1bd16a3` — 4 warning
  - added the new `admin` enum value to the `scope` response property for the response status `200`
  - added the new `install` enum value to the `scope` response property for the response status `200`
  - added the new `read` enum value to the `scope` response property for the response status `200`
  - added the new `update` enum value to the `scope` response property for the response status `200`
- **2023-05-05** `0a66bb0ccf19` — 5 info
  - the response property `client_id` became required for the status `200`
  - the response property `id` became required for the status `200`
  - the response property `scope` became required for the status `200`
  - the response property `token` became required for the status `200`
  - …1 more
- …earlier changes not shown

[Full history](https://skmtc.dev/contao/apis/contao-manager-api/changes/api/users/:username/tokens/:id/delete.md)

---

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