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

Changes

Changed in 1 of the 5 revisions of this API.1

    • removed the media type application/json for the response with the status

      response-media-type-removed