Deleting a flavor
Often times, requirements change; there is a demand for more performance, or business needs change. Whatever be the reason, your existing flavors may not meet the needs of those consuming cloud resources. When a given flavor is no longer suitable, it will need to be deleted.
Note
A flavor that is associated with a running instance cannot be deleted.
Getting ready
To change attributes of a flavor for Nova, you will need the following:
The
openstack
command-line clientThe
openrc
file containing appropriate credentialsThe name of the flavor to delete
How to do it…
The following commands are used to delete a flavor:
First, list the flavors available:
openstack flavor list
This will bring back a list of flavors like the following:
To delete the flavor, execute the following command:
openstack flavor delete openstack.cookbook
Note
This command shows no output when successful.
List the flavors again to view updated attributes:
openstack flavor list
Once again, this lists the flavors that...