---
title: "RevokeAllUserAuthTokens revokes all access and refresh tokens for a user.
You can optionally pass \"current\" instead of the user ID to revoke all tokens for the current user."
method: DELETE
path: "/v1/users/{userId}/tokens"
---

# RevokeAllUserAuthTokens revokes all access and refresh tokens for a user.
You can optionally pass "current" instead of the user ID to revoke all tokens for the current user.

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

## Path parameters

- `userId` string, required

## Query parameters

- `superuserForceAccess` boolean

## Response `200`

A successful response.

- V1RevokeAllUserAuthTokensResponse
  - `tokensRevoked` integer — Number of tokens revoked.

## Other responses

- `default` — An unexpected error response.

---

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