![]() You can delete individual images from a repository by specifying the repository name and tag in the delete operation. az acr repository delete -name myregistry -repository acr-helloworld If layers referenced by the deleted manifests are not referenced by any other images in the registry, their layer data is also deleted, recovering the storage space. The following Azure CLI command deletes the "acr-helloworld" repository and all tags and manifests within the repository. When you delete a repository, you recover the storage space used by the images that reference unique layers in that repository. Delete repositoryĭeleting a repository deletes all of the images in the repository, including all tags, unique layers, and manifests. It takes some time before the registry cleans up layers and shows the updated storage usage. However, the registry recovers the associated storage space using an asynchronous process. Delete by manifest digest: Deletes an image, all unique layers referenced by the image, and all tags associated with the image.įor an introduction to these concepts, see About registries, repositories, and images.Īfter you delete image data, Azure Container Registry stops billing you immediately for the associated storage. ![]() Delete by tag: Deletes an image, the tag, all unique layers referenced by the image, and all other tags associated with the image.Delete a repository: Deletes all images and all unique layers within the repository.This article covers several methods for deleting image data: For example, in an automated build and test scenario, your registry can quickly fill with images that might never be deployed, and can be purged shortly after completing the build and test pass.īecause you can delete image data in several different ways, it's important to understand how each delete operation affects storage usage. While some container images deployed into production may require longer-term storage, others can typically be deleted more quickly. To maintain the size of your Azure container registry, you should periodically delete stale image data.
0 Comments
Leave a Reply. |