You can delete multi-architecture image tags and all of the architectures under them at once using two ways:
Via the JFrog Platform WebUI (Supported from version 7.98.2)
Via curl (Supported from version 7.91.0)
Via the JFrog Platform WebUI
Starting from Artifactory version 7.98.2, Artifactory supports deleting image tags containing a manifest.list
with several architectures at once through the JFrog Platform WebUI.
To delete a multi-architecture tag:
Find the tag you would like to delete in the Artifact tree, and right-click the tag name
Select Delete Architectures from the options menu
The window will show a list of the architectures that will be deleted: review the list and when you are sure, click Delete All
Via Curl
From version 7.91.0, Artifactory supports deleting multi-architecture Docker tags with all of their sub-architectures. To delete a multi-architecture tag using curl, execute the following command:
curl -H "Authorization: Bearer <TOKEN>" -X DELETE -H "Content-Type: application/json" "https://<JFROG_HOST_URL> /artifactory/api/docker/<REPOSITORY_NAME>/v2/delete" -d ' { "dockerRepository": "<PATH_TO_IMAGE_NAME>", "tag": “<TAG>" }'
where:
Parameter | Description |
---|---|
| The docker repository and path to the image for deletion |
| The docker image tag that you want to delete |
Note
Make sure to replace the placeholders in bold with your own token, host URL, repository name, path to image name, and tag.
For example, the following curl command will delete the Docker image library/ubuntu
with all of its sub-architectures from the docker-prod
repository:
curl -H "Authorization: Bearer EIGU0YXHcuaRdf3piiuJ6t7kWFpIukX691fGXwPlojMtE64siym5S4MLVRdU43gq" -X DELETE -H "Content-Type: application/json" "https://my-awesome.jfrog.io/artifactory/api/docker/docker-prod/v2/delete" -d ' { "dockerRepository": "library/ubuntu", "tag": “1.0.0" }'