Deleting a disk image
Warning
Deleting a disk image is an operation that cannot be canceled or reversed. You cannot restore a deleted image.
Deleting an image does not delete the VMs and disks created from this image. They need to be deleted separately.
To delete an image:
Management console
CLI
- In the management console, select the folder the image belongs to.
- Select Compute Cloud.
- On the Virtual machines page, go to the Images tab.
- In the line with the appropriate image, click and select the Delete command.
- Confirm deletion.
If you don't have the Yandex.Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
See a description of the CLI's delete image commands:
$ yc compute image delete --help
-
Get a list of images in the default folder:
$ yc compute image list +----------------------+-------------+--------+-------------+--------+ | ID | NAME | FAMILY | PRODUCT IDS | STATUS | +----------------------+-------------+--------+-------------+--------+ | fd8n3spmksqmuraspf4h | first-image | | | READY | +----------------------+-------------+--------+-------------+--------+
-
Select the
ID
orNAME
of the image you need. -
Delete the image:
$ yc compute image delete \ --name first-image