Hello everyone!
This post will explain to you how to delete VMs at the IaaS layer. Please have a look at the information below.
ISSUE DESCRIPTION
If a VM is deleted using an incorrect method, the VM is not actually deleted. In this case, delete the VM in the background.
Note:
Before deleting the VM, check whether services are running on the VM and whether residual VMs are running on the VM.
DELETING METHOD
1. Find the VM ID.
nova list --all-t |grep VM name
2. Find and record the VM disk.
nova show vm-id
3. Locate the VM port.
4. Delete a VM.
nova delete vm-id
5. Delete a Volume.
cinder delete volume-id
6. Delete a port.
neutron port-delete port-id
Note:
Remember to query before deleting and also remember to query after deleting to check whether it's been deleted.
cinder list | grep volume-id
neutron port list | grep port-id
That's all, thanks!