---
title: "Delete personal access token"
method: DELETE
path: "/api/users/{userId}/personal-access-tokens/{name}"
tags: ["Users"]
---

# 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.

## Path parameters

- `userId` string, required
- `name` string, required

## Response `204`

The token was deleted successfully.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/versions/a163dc77d842/schema)
