6.3.7. Removing Districts
When deleting a district, first remove all the node hosts from the district, then delete the district.
Procedure 6.5. To Remove Districts:
- On the broker host, set the district's capacity to
0
:#
oo-admin-ctl-district -c remove-capacity -n district_name -s 6000
- Remove all the node hosts from the district you want to delete by running the following commands for each node:
#
oo-admin-ctl-district -c deactivate-node -i node_hostname
#oo-admin-ctl-district -c remove-node -n district_name -i node_hostname
- Delete the empty district:
#
oo-admin-ctl-district -c destroy -n district_name