Deleting a VM
Warning
Deleting a VM is an operation that cannot be canceled or reversed. You cannot restore a deleted VM.
When you select a disk to attach to a VM, you can specify whether that disk should be deleted when deleting the VM. You can choose this option when creating a VM, updating it, or attaching a new disk to it.
If you have disks attached to your VM, the disks will be detached when you delete the VM. The disk data will be preserved, and you will be able to attach these disks to another VM when needed.
-
In the management console
, select the folder the VM belongs to. -
Select Compute Cloud.
-
In the line with the appropriate VM, click
To delete multiple VMs, select the VMs you need to delete in the list and click Delete at the bottom of the screen.
-
In the window that opens, click Delete.
If you don't have the Nebius AI 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 instance delete command below:
ncp compute instance delete --help
-
Get a list of VMs:
ncp compute instance list
Result:
+----------------------+-----------------+---------------+---------+ | ID | NAME | ZONE ID | STATUS | +----------------------+-----------------+---------------+--------- | fhm0b28lgfp4tkoa3jl6 | first-instance | eu-north1-c | RUNNING | | fhm9gk85nj7gcoji2f8s | second-instance | eu-north1-c | RUNNING | +----------------------+-----------------+---------------+---------
-
Select the VM
ID
orNAME
(for example,first-instance
). -
Delete the VM:
ncp compute instance delete first-instance