Why do all the tags get deleted when I delete an image in Container Registry?
You tried to delete an image from IBM Cloud® Container Registry by using the ibmcloud cr image-rm command and all the tags that referred to that image
got deleted too.
You deleted an image by using the ibmcloud cr image-rm command and all the tags within the same repository that reference the image also got deleted.
Where multiple tags exist for the same image digest within a repository, the ibmcloud cr image-rm command removes the underlying image and all its tags. If the same image exists in a different repository or namespace, then that copy of the image is not removed.
If you want to remove a tag from an image and make sure that the underlying image and any other tags remain in place, use the ibmcloud cr image-untag command.
For more information, see Removing tags from images in your private repository and Deleting images from your private repository.