Delete personal access token Run in API Explorer

DELETE /v2/access-tokens/{uuid}

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

Path parameters

  • uuid string Required

Responses

  • 204

    A successful response.

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • detail string
    • message string
  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • detail string
    • message string
DELETE /v2/access-tokens/{uuid}
curl \
 --request DELETE 'https://hub.docker.com/v2/access-tokens/{uuid}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (401)
{
  "detail": "string",
  "message": "string"
}
Response examples (404)
{
  "detail": "string",
  "message": "string"
}