Deleting Virtual Machine

Deleting entities is the only way to release resources and free up quotas.

Warning

You should always refer to Creating Snapshots from Instance as this process is not reversible and may result in data loss.

Web Interface

  1. In Web Interface ComputeInstances, select the VM you wish to delete

  1. Click DELETE INSTANCES

Command-line

See Using OpenStack Command-line Interface on how to set-up the command line client.

  1. Find the instance ID with openstack server list

$ openstack server list
+--------------------------------------+-----------------------+--------+-------------------------+---------------------------------------------------------+--------------+
| ID                                   | Name                  | Status | Networks                | Image                                                   | Flavor       |
+--------------------------------------+-----------------------+--------+-------------------------+---------------------------------------------------------+--------------+
| c3b01eac-b5c7-4f57-8b09-f575f37cfe25 | delete-cli            | ACTIVE | Internal=172.16.113.107 | ubuntu-focal-20.04-nogui                                | c3.small     |
+--------------------------------------+-----------------------+--------+-------------------------+---------------------------------------------------------+--------------+
  1. Run

openstack server delete <instance-id>

Example

$ openstack server delete c3b01eac-b5c7-4f57-8b09-f575f37cfe25