Deleting a Docker image from a registry
Alert
Deleting a Docker image is a deferred action operation: when you delete a Docker image, its layers are physically removed 1 hour later. Information about the total size of the registry is also updated 1 hour later.
Management console
CLI
API
To delete a Docker image:
- Go to the repository where you want to remove the image:
- Open the Container Registry section in the folder.
- Open the appropriate registry.
- Open the repository.
- Click in the line of the Docker image to delete.
- In the menu that opens, click Delete.
- In the window that opens, click Delete.
If you don't have the Yandex.Cloud command line interface yet, install and initialize it.
To delete a Docker image, use its ID. You can find the ID by requesting a list of Docker images in the appropriate registry.
-
Delete the Docker image:
yc container image delete crp9vik7sgeco7emq743
-
Make sure the Docker image has been deleted:
yc container image list +----+---------+------+------+-----------------+ | ID | CREATED | NAME | TAGS | COMPRESSED SIZE | +----+---------+------+------+-----------------+ +----+---------+------+------+-----------------+