Deleting a VM from Cloud Backup
When you delete a VM from Cloud Backup, it remains in Yandex Compute Cloud and keeps running. You need to delete a VM from Compute Cloud separately.
Note
If you delete a VM from Compute Cloud using the management console it is also deleted from Cloud Backup. If you use the YC CLI, Terraform, or an API request, the VM remains available in Cloud Backup.
If you want to reconnect a VM to Cloud Backup after you delete it, use these guides:
To delete a VM from Cloud Backup:
- In the management console
, select the folder to delete the VM from. - In the list of services, select Cloud Backup.
- Next to the VM you want to delete, click
and select Delete. - Confirm the deletion.
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
View a description of the CLI command to delete a VM from Cloud Backup:
yc backup vm delete --help
-
Get the ID of the VM to delete:
yc compute instance list
Result:
+----------------------+---------+---------------+---------+--------------+-------------+ | ID | NAME | ZONE ID | STATUS | EXTERNAL IP | INTERNAL IP | +----------------------+---------+---------------+---------+--------------+-------------+ | jklp0o9i8012******** | my-vm-1 | ru-central1-b | RUNNING | 51.250.**.** | 192.168.*.* | | mnoa5s6d8345******** | my-vm-2 | ru-central1-b | RUNNING | 84.201.**.** | 192.168.*.* | +----------------------+---------+---------------+---------+--------------+-------------+
-
Delete the VM by specifying its ID:
yc backup vm delete <VM_ID>
Use the delete REST API method for the Resource resource or the ResourceService/Delete gRPC API call.