# Delete personal access token **DELETE /api/users/{userId}/personal-access-tokens/{name}** Delete a token for the user by name using the legacy path parameter. Deprecated: use the POST /delete endpoint instead to avoid url name encoding issues. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters #### Path parameters - **userId** (string) The unique identifier of the user. - **name** (string) The name of the token. ## Responses ### 204: The token was deleted successfully. ### 400: Bad Request ### 401: Unauthorized ### 403: Forbidden ### 404: Not Found [Powered by Bump.sh](https://bump.sh)