---
name: Registry-ts_image_rm
title: Why do all the tags get deleted when I delete an image in Container Registry?
description: You tried to delete an image from IBM Cloud&reg; Container Registry by using the `ibmcloud cr image-rm` command and all the tags that referred to that image got deleted too.
last-updated: 2025-10-10
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/Registry?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Why do all the tags get deleted when I delete an image in Container Registry?
{: #troubleshoot-image-rm}
{: troubleshoot}
{: support}

You tried to delete an image from IBM Cloud&reg; Container Registry by using the `ibmcloud cr image-rm` command and all the [tags](https://cloud.ibm.com/docs/Registry?topic=Registry-registry_overview&format=markdown#overview_elements_tag) that referred to that image got deleted too.
{: shortdesc}

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.
{: tsSymptoms}

Where multiple tags exist for the same image [digest](https://cloud.ibm.com/docs/Registry?topic=Registry-registry_overview&format=markdown#overview_elements_digest) within a repository, the [`ibmcloud cr image-rm`](https://cloud.ibm.com/docs/Registry?topic=Registry-containerregcli&format=markdown#bx_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.
{: tsCauses}

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`](https://cloud.ibm.com/docs/Registry?topic=Registry-containerregcli&format=markdown#bx_cr_image_untag) command. For more information, see [Removing tags from images in your private repository](https://cloud.ibm.com/docs/Registry?topic=Registry-registry_images_&format=markdown#registry_images_untag) and [Deleting images from your private repository](https://cloud.ibm.com/docs/Registry?topic=Registry-registry_images_&format=markdown#registry_images_remove).
{: tsResolve}