Delete a Specific Token of a User

This API deletes a specific personal access token for a user, based on the user ID and token ID.

Enterprise Edition only


DELETE /api/v3/user/{id}/token/{tid}


You must enable Personal Access Tokens to successfully call this API.

Request Input


Response Output

Return boolean Success/Failure.

Response codes

  • 403: The token user must be an admin.
  • 404: Token with token_id does not exist for the user.

Example: Curl

curl --request DELETE \
  --url http://localhost:9047/api/v3/pat/<uid>/token/<tid> \
  --header 'authorization: _dremioha5lrg03obu079o4fkaev5e4r8n'