---
title: "Delete service-account token"
method: DELETE
path: "/api/organizations/{name}/service-accounts/{serviceAccountId}/tokens/{tokenId}"
tags: ["service-accounts"]
---

# Delete service-account token

`DELETE /api/organizations/{name}/service-accounts/{serviceAccountId}/tokens/{tokenId}`

## Request

- Base URL: `https://huggingface.co`
- URL: `https://huggingface.co/api/organizations/{name}/service-accounts/{serviceAccountId}/tokens/{tokenId}`
- Auth: HTTP bearer

Delete an access token from a service account. This action cannot be undone.

## Path parameters

- `name` string, required
- `serviceAccountId` string, required
- `tokenId` string, required

## Response `204`

Token deleted

- unknown

---

[API](https://skmtc.dev/huggingface/apis/hub-api-endpoints.md) - [All operations](https://skmtc.dev/huggingface/apis/hub-api-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/huggingface/apis/hub-api-endpoints/revisions/5cabdcc8a394?raw)
