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

Deletes a specific personal access token for a user, based on the user ID and token ID.

Enterprise Edition only

Syntax

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

Note

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

Request Input

N/A

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'