Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Compute Cloud
    • All guides
      • Creating a disk placement group
      • Adding a disk to a placement group
      • Getting disk placement group info
      • Configuring disk placement group access permissions
      • Removing a disk from a placement group
    • Viewing service resource operations
    • Viewing metrics in Monitoring
    • NVIDIA driver update guide
  • Yandex Container Solution
  • Access management
  • Pricing policy
  • 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 December 3, 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. Go to Compute Cloud.
  3. In the left-hand panel, select Placement groups.
  4. Navigate 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 relevant documentation on the Terraform website or its mirror.

If you do not have Terraform yet, install it and configure the 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, navigate 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
    

    You will see a detailed list of resources. No changes will be made at this step. If the configuration contains any errors, Terraform will show them.

  5. Apply the changes:

    terraform apply
    
  6. Type yes and press Enter to confirm the changes.

    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
Setting up a disk image
© 2025 Direct Cursus Technology L.L.C.