v5

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-167122208.0 KB
master_tokens

destroy

Destroy a master token and all of its read token children.

NOTE: Default tokens have their token value rotated when used with this API. All private repositories must have default master tokens.

Example request:

curl -X DELETE https://packagecloud.io/api/v1/repos/username/reponame/master_tokens/1
delete/api/v1/repos/{user_id}/{repo}/master_tokens/{id}

Path parameters

user_idstring required

The username to which the repo belongs.

repostring required

The name of the repo.

idinteger required

The id of the master token to be destroyed.

Response

Successful response