Delete access token Run in API Explorer

DELETE /v2/orgs/{org_name}/access-tokens/{access_token_id}

Delete a specific access token for an organization. This action cannot be undone.

Path parameters

  • org_name string Required

    Name of the organization (namespace).

  • access_token_id string Required

    The ID of the access token to retrieve

Responses

  • 204

    Access token deleted successfully

  • 401 application/json

    Unauthorized

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

    Forbidden

    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/orgs/{org_name}/access-tokens/{access_token_id}
curl \
 --request DELETE 'https://hub.docker.com/v2/orgs/myorganization/access-tokens/a7a5ef25-8889-43a0-8cc7-f2a94268e861' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (401)
{
  "detail": "string",
  "message": "string"
}
Response examples (403)
{
  "detail": "string",
  "message": "string"
}
Response examples (404)
{
  "detail": "string",
  "message": "string"
}