Skip to main content
Revoke the specified token and return 204. It stops working immediately. Requires an API key or signed-in user.

Signature

Method signature on client.projects:

Parameters

string
required
Project ID with prefix pp..
string
required
ID of the scoped token, with prefix pst..

Returns

Promise<void> Resolves without a return value.

Errors

HTTP errors throw PotatoApiError. The endpoint documents these error responses: HTTP endpoint: DELETE /projects/{projectId}/tokens/{tokenId}.