Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Delete redirected Container Registry buckets

Hello.

I'm moving away from Container Registry as it's being deprecated. So I performed the necessary steps to find possible Container Registry usage:

```

gcloud container images list-gcr-usage --project <my project>

```

And the output is `Redirected` which means: 

  • REDIRECTED: the project has been redirected to Artifact Registry but still has Container Registry Cloud Storage buckets. This project will continue to function after Container Registry is turned down and no further action is required. You can reduce costs by deleting the Container Registry Cloud Storage buckets.

I want to reduce cost ofcourse so I found all the Container Registry images:

```

gcloud container images list

```

And it gave me a bunch. So I can simply delete these bucket without Artifact Registry being affected? The problem is that when I go to Artifact Registry I see a list of buckets with the name grc in them like:

```

austrelia.grc.io

grc.io

and so on

```

So overall I can safely delete the Container Registry buckets without Artifactory Registry being affected?

0 1 334
1 REPLY 1

Hi @Gopher1 ,

Welcome to Google Cloud Community!

It appears that you have been successfully moved from Container Registry to Artifact Registry, therefore you can safely remove those old gcr.io buckets without impacting Artifact Registry.

Prior to removing, make sure to verify that none of your services or deployments are still connected to any images in those buckets. One way to accomplish this is by checking image tags with gcloud container images list-tags. After confirming that they are not being used, feel free to delete the buckets to reduce storage expenses.

Artifact Registry does not utilize the outdated Cloud Storage buckets, so you don't need to worry about that. You can safely delete the Container Registry buckets without affecting your Artifact Registry

Hope the above information helps!