Delete Token
AI-generatedSummary
Deletes an API token from an Auth Service instance by its UUID, by sending an authenticated DELETE request to {baseUrl}/tokens/{tokenId}. The credential used must have the tokens:write scope.
Inputs
- Token ID (required) — The UUID of the token to delete. It is inserted directly into the request URL path (
/tokens/<id>), and it can be set with an expression, for example to take the ID from a previous List Tokens or Create Token item.
Output shape
One output item per input item, with the parsed JSON response body from the Auth Service DELETE endpoint as the item's json.
The source doesn't define the response shape, so it depends on the Auth Service API. An empty body may produce an empty or minimal item. The node runs once for each input item. If 'Continue On Fail' is enabled, a failed item returns
{ error: <message>, operation: 'deleteToken' }instead of stopping the workflow. Otherwise, an HTTP error (such as 404 or 403) throws. Requests use the authServiceApi credential and its baseUrl.
Examples
Example 1: Revoke a specific token whose ID is known.
Operation: Delete Token; Token ID: 3f2b8c1e-... (UUID of the token).
Example 2: Remove tokens found by an earlier List Tokens step and filtered by an IF or Filter node.
Operation: Delete Token; Token ID: expression {{ $json.id }}. This assumes the listed items have an id field, which the source doesn't confirm.