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:
- Go to the folder page
and select Container Registry. - Open the appropriate registry.
- Open the repository.
- Go to the folder page
- Click the
- In the resulting menu, click Delete.
- In the window that opens, click Delete.
If you don't have the Nebius Israel command line interface yet, install and initialize it.
To delete a Docker image, use the image ID. You can retrieve the ID by requesting a list of Docker images in the desired registry.
-
Delete the Docker image:
yc container image delete crp9vik7sgeco7emq743
-
Make sure the Docker image has been deleted:
yc container image list
Command result:
+----+---------+------+------+-----------------+ | ID | CREATED | NAME | TAGS | COMPRESSED SIZE | +----+---------+------+------+-----------------+ +----+---------+------+------+-----------------+