To delete your token, the registryId and tokenId to be deleted must be provided.
You can get registryId through GET Registries API call and Create Registry Token.
Delete the information about the token using the following curl command:
204 - No Content
The action was successful and the response body is empty.
400 Bad Request - The request made is invalid or corrupted
404 Bad Request - Not Found
This way you can delete a particular token.
registryId
string
The ID of the registry to be deleted.
779f8e3c-d5c8-4359-8f85-c200fb89e97c
tokenId
string
TThe associated ID of the token to be deleted.
4b120b87-91ab-4ec2-8952-cc771a37bd08
curl --location \
--request DELETE 'https://api.ionos.com/containerregistries/registries/779f8e3c-d5c8-4359-8f85-c200fb89e97c/tokens/b120b87-91ab-4ec2-8952-cc771a37bd08' \
--header 'Authorization: Basic e3t1c2VybmFtZX19Ont7cGFzc3dvcmR9fQ==' \
--data-raw ''
{
"httpStatus": 400,
"messages": [
{
"errorCode": "123",
"message": "ad velit dolor dolore laboris"
},
{
"errorCode": "123",
"message": "tempor"
}
]
}{
"msg": "Not Found"
}