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
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Compute Cloud
    • All guides
      • Updating a disk
      • Configuring disk snapshot schedules
      • Moving a disk to a different folder
      • Moving a disk to a different availability zone
      • Encrypting a disk
      • Getting information about a disk
      • Configuring disk access permissions
      • Deleting a disk
    • 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 a disk
  3. Deleting a disk

Deleting a disk

Written by
Yandex Cloud
Updated at May 5, 2025

Warning

You can only delete a disk that is not attached to a virtual machine. To learn how to detach a disk, see Detaching a disk from a VM. Deleting a disk is permanent and cannot be undone, so you cannot recover a deleted disk.

If you delete a disk, its snapshots remain unaffected. Snapshots must be deleted separately.

To delete a disk:

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

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 disks:

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

    yc compute disk list
    

    Result:

    +----------------------+--------------+-------------+-------------------+--------+----------------------+-----------------+-------------+
    |          ID          |     NAME     |    SIZE     |       ZONE        | STATUS |     INSTANCE IDS     | PLACEMENT GROUP | DESCRIPTION |
    +----------------------+--------------+-------------+-------------------+--------+----------------------+-----------------+-------------+
    | a7lqgbt0bb9s******** | first-disk   | 20401094656 |   ru-central1-a   | READY  | a7lcvu28njbh******** |                 |             |
    | a7lv5j5hm1p1******** | second-disk  | 21474836480 |   ru-central1-a   | READY  |                      |                 |             |
    +----------------------+--------------+-------------+-------------------+--------+----------------------+-----------------+-------------+
    
  3. Select ID or NAME of the disk in question.

  4. Delete the disk:

    yc compute disk delete \
      --name first-disk
    

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

To delete a disk 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.

To delete a disk, use the delete REST API method for the Disk resource or the DiskService/Delete gRPC API call.

To request a list of available disks, use the list REST API method or the DiskService/List gRPC API call.

Was the article helpful?

Previous
Configuring disk access permissions
Next
Creating a snapshot
© 2025 Direct Cursus Technology L.L.C.