---
title: "Delete a token"
method: DELETE
path: "/v3/tokens/{token}"
tags: ["Tokens"]
---

# Delete a token

`DELETE /v3/tokens/{token}`

Deletes a token and returns the deleted object.

## Path parameters

- `token` string, required

## Response `200`

The deleted token.

- Token
  - `token` string — The token to send in the `Authorization` header.
  - `grants` Grant[]
    - `connection_name` string, required
    - `source` string
    - `resource` string
  - `allowed_apis` TokenAllowedApi[]
  - `referers` string[], nullable
  - `name` string
  - `user_id` string, nullable
  - `account_id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `expiration_date` string, date-time, nullable

## Other responses

- `401` — The token is missing, malformed or expired.
- `403` — You can't delete this token — either it isn't yours, or a map is still using it.
- `404` — The resource doesn't exist.

---

[API](https://skmtc.net/gitbookio/apis/carto-api.md) · [All operations](https://skmtc.net/gitbookio/apis/carto-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitbookio/carto-api/revisions/019f79ecdd6c/schema)
