Delete Multi-Architecture Docker Tags

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

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 -u<USERNAME>:<PASSWORD> -X DELETE "<JFROG_HOST_URL>/artifactory/api/docker/<Docker v2 repository name>/v2/delete"
{
    "dockerRepository": "<PATH_TO_IMAGE_NAME>",
    "tag": "<TAG>"
}

where:

Parameter

Description

dockerRepository

The docker repository and path to the image for deletion

tag

The docker image tag that you want to delete

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 -i -uadmin:password -X DELETE "https://artprod.company.com/artifactory/api/docker/docker-prod/v2/delete"  
{
    "dockerRepository":"library/ubuntu",
    "tag":"1.0.0"
}