Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 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
        • Transferring a disk image to external S3 storage without an intermediate VM
        • Transferring a disk image to external S3 storage with an intermediate VM
        • Encrypting a disk
        • Getting disk info
        • Configuring disk access permissions
        • Deleting a disk
    • Viewing operations with resources
    • Viewing metrics Monitoring
  • Yandex Container Solution
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Disks
  3. Management
  4. Deleting a disk

Deleting a disk

Written by
Yandex Cloud
Updated at October 29, 2026
View as Markdown

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. Navigate to Compute Cloud.
  3. In the left-hand panel, select Disks and storages.
  4. In the line with the disk, click and select Delete.
  5. In the window that opens, click Delete.

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

If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  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 the Yandex Cloud provider.

To manage infrastructure using Terraform under a service account or user accounts (a Yandex account, a federated account, or a local user), authenticate using the appropriate method.

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 VM from a public image
© 2026 Direct Cursus Technology L.L.C.