Memos unofficial
DELETE/api/v1/users/{user}/personalAccessTokens/{personalAccessToken}

Delete a personal access token

Deletes a personal access token. Provide the user and token identifiers to specify which PAT to delete. The token is a long-lived credential for API or script access.

2 parameters
userstringrequired
The user ID that owns the personal access token.
personalAccessTokenstringrequired
The personal access token ID to delete.

2 status codes
200Returns an empty response confirming that the personal access token was deleted.
defaultDefault error response
codeintegeroptional
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
messagestringoptional
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
detailsarray<object>optional
A list of messages that carry the error details. There is a common set of message types for APIs to use.

Error handling

The user path parameter must identify the user who owns the token. The personalAccessToken path parameter must identify the token to delete.