Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Compute Cloud
    • All guides
      • Getting a list of images
      • Getting information about an image
      • Importing an image from another cloud or folder
      • Configuring image access permissions
      • Deleting an image
    • Viewing operations with resources
  • Yandex Container Solution
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Managing an image
  3. Deleting an image

Deleting a disk image

Written by
Yandex Cloud
Updated at May 5, 2025

Warning

Deleting a disk image is permanent and cannot be undone, so you cannot recover a deleted image.

Deleting an image does not affect the VMs or disks created from that image. They must be deleted separately.

To delete an image:

Management console
CLI
Terraform
API
  1. In the management console, select the folder the image belongs to.
  2. Select Compute Cloud.
  3. In the left-hand panel, select Images.
  4. In the line with the image, click and select Delete.
  5. In the window that opens, click Delete.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. See the description of the CLI commands for deleting images:

    yc compute image delete --help
    
  2. Get a list of images in the default folder:

    yc compute image list
    

    Result:

    +----------------------+-------------+--------+-------------+--------+
    |          ID          |    NAME     | FAMILY | PRODUCT IDS | STATUS |
    +----------------------+-------------+--------+-------------+--------+
    | fd8n3spmksqm******** | first-image |        |             | READY  |
    +----------------------+-------------+--------+-------------+--------+
    
  3. Select ID or NAME of the image in question.

  4. Delete the image:

    yc compute image delete \
      --name first-image
    

If you do not have Terraform yet, install it and configure its Yandex Cloud provider.

To delete an image created with Terraform, follow these steps:

  1. In the command line, go to the directory with the Terraform configuration file.

  2. Delete the resources using this command:

    terraform destroy
    

    Alert

    Terraform will delete all the resources you created in the current configuration, such as clusters, networks, subnets, and VMs.

  3. Type yes and press Enter.

Use the delete REST API method for the Image resource or the ImageService/Delete gRPC API call.

Was the article helpful?

Previous
Configuring image access permissions
Next
Creating a file storage
Yandex project
© 2025 Yandex.Cloud LLC