First step is to get to know what is there:
This lists all services with container images in my europe registry folder.
Next list all images in one of the folders:
$IMAGE is the full name of the folder, i.e.
This returns a list of images with tags and date, i.e.:
To delete an image we need the SHA256 of the image.
Same command as before but with a
--format at the end.
The result is only the sha256 without tags and date. So quite hard to decide if I want to delete it. :(
Now delete one of the images, for safety reasons I chose the oldest one:
gcloud container images delete -q --force-delete-tags \ "gcr.io/$PROJECT_ID/helloword@sha256:b280f4f858492e50176470c26edb9cd4903cf69dc78070c806340edc1a1c84bc"
Doing this manually feels wrong and is quite time consuming.