
OpenStack Cloud Computing Cookbook
By :

To complete the life cycle of an instance, you will need to delete it. Nova provides a facility for this, using the openstack
command-line tool.
To delete an instance, you will need the following:
The openstack
command-line client
The openrc
file containing appropriate credentials
The name of the instance
In this example, we will be deleting the cookbook.test
instance created in the Booting an instance recipe used for booting. To delete the instance, use the following steps:
First, list the running instances:
openstack server list
To delete the instance named cookbook.test
, issue the following command:
openstack server delete cookbook.test
This command produces no output when successful.
Now list the instances again to confirm the deletion:
openstack server list
This will bring back an output, where the instance we have deleted is now not present:
The openstack server delete
command, unlike suspending or shelving an instance, deletes...
Change the font size
Change margin width
Change background colour