# Delete personal access token


[API catalog](/reference/api/) · [Docker Hub overview](/reference/api/hub/latest/) · [Product manual](https://docs.docker.com/docker-hub/) · [OpenAPI specification](/reference/api/hub/latest.yaml)

API version: 2-beta



`DELETE /v2/access-tokens/{uuid}`

Deletes a personal access token permanently. This cannot be undone.


## Connection and access

[API connection and authentication guidance](/reference/api/hub/latest/#authentication)


Server: `https://hub.docker.com`

Effective security: alternatives are OR; schemes within an alternative are AND. An empty array declares no HTTP authentication requirement.

```json
[
  {
    "bearerAuth": []
  }
]
```
## Example request

Replace placeholders and provide the required credentials or request body.

```console
curl \
  --request DELETE \
  --header "Authorization: Bearer ${TOKEN}" \
  'https://hub.docker.com/v2/access-tokens/<UUID>'
```

## Parameters

### uuid

Location: path. Required: yes.

UUID of the personal access token.

```json
{
  "description": "UUID of the personal access token.",
  "in": "path",
  "name": "uuid",
  "pointer": "/paths/~1v2~1access-tokens~1{uuid}/parameters/0",
  "required": true,
  "schema": {
    "type": "string"
  }
}
```

## Request and responses

### Response 204 

A successful response.

No response content is declared.






### Response 401 application/json

Unauthorized


Schema:

```json
{
  "$ref": "#/components/schemas/error"
}
```




error:
```json
{
  "errinfo": null,
  "message": "unauthorized"
}
```


### Response 404 application/json

Not Found


Schema:

```json
{
  "$ref": "#/components/schemas/error"
}
```




error:
```json
{
  "errinfo": null,
  "message": "not found"
}
```


## Complete operation contract

```json
{
  "description": "Deletes a personal access token permanently. This cannot be undone.\n",
  "operationId": "deleteV2AccessTokensByUuid",
  "responses": {
    "204": {
      "description": "A successful response."
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    },
    "404": {
      "$ref": "#/components/responses/NotFound"
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "summary": "Delete personal access token",
  "tags": [
    "access-tokens"
  ]
}
```

## Referenced schemas

- `#/components/responses/NotFound`

- `#/components/responses/Unauthorized`




