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.
Tip
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 client - The
openrc
file containing appropriate credentials - The 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 ...
Get OpenStack Cloud Computing Cookbook - Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.