# Delete a personal access token

From **GitHub v3 REST API**.

`DELETE /admin/tokens/{token_id}`

Deletes a personal access token. Returns a `403 - Forbidden` status when a personal access token is in use. For example, if you access this endpoint with the same personal access token that you are trying to delete, you will receive this error.

## Parameters

### `token_id`

- Location: path
- Required: true
- Type: `integer`

## Responses

### `204`

Response

## Request examples

### cURL

```shell
curl --request DELETE \
  --url {protocol}://{hostname}/api/v3/admin/tokens/{token_id}
```
