Deleting an instance
Deleting an instance deletes the virtual machine and the root disk of the server, unless otherwise configured by the disk deletion policy.
If you need to delete only the virtual machine, you should disconnect the disks before deleting and replace the root disk with a temporary one.
MCS control panel
To delete an instance in your MCS account, you should:
- Go to the Virtual Machines page of the Cloud Computing section.
- In the context menu of the instance, select the "Delete" item:
- Confirm the operation:
OpenStack CLI
To delete an instance in the OpenStack client, use the command:
$ openstack server delete <server ID>
View Disk Removal Policy:
$ nova show <instance ID>
As a result of the command execution, the "os-extended-volumes: volumes_attached" line lists the IDs of the disks and their deletion policy ("delete_on_termination").