Deleting a Docker image from a registry

    Warning

    Deleting a Docker image is a deferred action operation: when you delete a Docker image, its layers are physically removed in 1 hour. Information about the total size of the registry is also updated in 1 hour.

    To delete a Docker image:

    1. Go to the repository where you want to remove the image:
      1. Open the Container Registry section in the folder.
      2. Open the appropriate registry.
      3. Open the repository.
    2. Click image in the line of the Docker image to delete.
    3. In the menu that opens, click Delete.
    4. In the window that opens, click Delete.

    If you don't have the Yandex.Cloud command line interface yet, install 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.

    1. Delete the Docker image:

      $ yc container image delete crp9vik7sgeco7emq743
      
    2. Make sure the Docker image has been deleted:

      $ yc container image list
      +----+---------+------+------+-----------------+
      | ID | CREATED | NAME | TAGS | COMPRESSED SIZE |
      +----+---------+------+------+-----------------+
      +----+---------+------+------+-----------------+
      

    To delete a Docker image, use the delete method for the Image resource.