Deleting a cloud
To delete a cloud, you must have the editor role or higher for that cloud. If you cannot perform this operation, contact the cloud owner.
- In the management console
, select the appropriate cloud from the list on the left. - Click
in the top-right corner and select Delete. - Select a cloud deletion delay, after which the cloud will be deleted. Select one of the suggested periods or
Delete now
. The default cloud deletion delay is 7 days. - Click Delete.
If you don't have Terraform, install it and configure the Yandex Cloud provider.
To delete a cloud created using Terraform:
-
Open the Terraform configuration file and delete the fragment with the cloud description.
Example cloud description in Terraform configuration
... resource "yandex_resourcemanager_cloud" "cloud1" { name = "cloud-main" organization_id = "bpf7nhb9hkph********" } ...
For more information about the
yandex_resourcemanager_cloud
resource parameters in Terraform, see the relevant provider documentation . -
In the command line, change to the folder where you edited the configuration file.
-
Make sure the configuration file is correct using this command:
terraform validate
If the configuration is correct, you will get this message:
Success! The configuration is valid.
-
Run this command:
terraform plan
The terminal will display a list of resources with parameters. No changes will be made at this step. If the configuration contains any errors, Terraform will point them out.
-
Apply the configuration changes:
terraform apply
-
Confirm the changes: type
yes
into the terminal and press Enter.You can check the update using the management console
or this CLI command:yc resource-manager cloud list
To delete the cloud, use the CloudService/Delete gRPC API call.
The resources will be stopped, and the cloud status will change to PENDING_DELETION
. You can cancel the deletion of a cloud when it is PENDING_DELETION
.
Alert
While a cloud is PENDING_DELETION
, your disks, reserved IP addresses, and other data are kept in storage. The cost of such storage is charged at the previous rate. Track your resource costs in Yandex Cloud Billing
Once the waiting timeout expires, the cloud status switches to DELETING
. This status means it is being permanently deleted, which can take up to 72 hours.