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:
openstack
command-line clientopenrc
file containing appropriate credentialsIn 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:
openstack server list
cookbook.test
, issue the following command:openstack server delete cookbook.test
openstack server list
This will bring back an output, where the instance we have deleted is now not present:
3.16.50.188