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
      • Creating a disk placement group
      • Adding a disk to a placement group
      • Getting information about a disk placement group
      • Configuring disk placement group access permissions
      • Removing a disk from a placement group
    • Viewing operations with resources
  • Yandex Container Solution
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Disk placement groups
  3. Removing a disk from a placement group

Removing a disk from a placement group

Written by
Yandex Cloud
Updated at April 22, 2025

Remove a non-replicated disk from a placement group. You can then permanently delete the disk or add it back to the placement group.

Management console
Terraform
  1. In the management console, select the folder where you want to remove a disk from a placement group.
  2. Select Compute Cloud.
  3. In the left-hand panel, select Placement groups.
  4. Go to the Non-replicated disk placement groups tab.
  5. Select the placement group to remove a disk from.
  6. Go to the Disks panel.
  7. To the right of the name of the disk to remove, click and select Delete.
  8. In the window that opens, click Delete.

With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

Terraform is distributed under the Business Source License. The Yandex Cloud provider for Terraform is distributed under the MPL-2.0 license.

For more information about the provider resources, see the documentation on the Terraform website or mirror website.

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

To remove a non-replicated disk created with Terraform from a placement group:

  1. Open the Terraform configuration file and delete the section specifying the non-replicated disk.

    Example of specifying a non-replicated disk in Terraform configuration
    ...
    resource "yandex_compute_disk" "nr" {
      name       = "non-replicated-disk-name"
      size       = 93
      block_size = 4096
      type       = "network-ssd-nonreplicated"
      zone       = "ru-central1-b"
    
      disk_placement_policy {
        disk_placement_group_id = yandex_compute_disk_placement_group.this.id
      }
    }
    
    resource "yandex_compute_disk_placement_group" "this" {
      zone = "ru-central1-b"
    }
    ...
    
  2. In the command line, go to the directory with the Terraform configuration file.

  3. Check the configuration using this command:

    terraform validate
    

    If the configuration is correct, you will get this message:

    Success! The configuration is valid.
    
  4. Run this command:

    terraform plan
    

    The terminal will display a list of resources with their parameters. No changes will be made at this step. If the configuration contains any errors, Terraform will point them out.

  5. Apply the configuration changes:

    terraform apply
    
  6. Confirm the changes: type yes into the terminal and press Enter.

    You can check the updates using the management console or this CLI command:

    yc compute disk-placement-group get <disk_placement_group_name>
    

Was the article helpful?

Previous
Configuring disk placement group access permissions
Next
Preparing a disk image
Yandex project
© 2025 Yandex.Cloud LLC