Removing an Availability Zone
Removing an AZ is a multistep process, and has some caveats. To remove an AZ, you must first remove the hosts from the host aggregate.
Getting ready
The following information is required to remove an AZ:
The
openstackcommand line clientThe
openrcfile containing appropriate credentialsThe name or ID of the AZ
How to do it…
The following steps can be used to remove an AZ:
First, list the AZs available with the following command:
openstack availability zone listThis will bring back an output like the following:

Now list the hosts within the AZ that we want to delete:
openstack aggregate show cookbook-azThis will bring back an output like the following:

Now remove the hosts with following command (repeat as necessary for each host in the aggregate):
openstack aggregate remove host cookbook-az compute-01This will bring back the following output:

Remove the AZ using the
aggregate deletecommand:openstack aggregate delete cookbook-azNote
This command produces no output...