---
title: "Deletes a specific token associated with a user"
method: DELETE
path: "/users/{userId}/tokens/{tokenId}"
tags: ["public", "TokenInfo"]
---

# Deletes a specific token associated with a user

`DELETE /users/{userId}/tokens/{tokenId}`

This endpoint deletes a user's session token. The deleted token can no longer be used to access the API. All other tokens for this user can still be used.

## Path parameters

- `userId` string, required
- `tokenId` string, required

## Response `204`

The token was successfully deleted.

## Other responses

- `400` — The request is invalid.
- `403` — The calling user does not have permission to delete the token.
- `404` — This token id is not available for the user or the user does not exist.

---

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