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:

  1. On the broker host, set the district's capacity to 0:
    # oo-admin-ctl-district -c remove-capacity -n district_name -s 6000oo-admin-ctl-district -c remove-capacity -n district_name -s 6000oo-admin-ctl-district -c remove-capacity -n district_name -s 6000
    Copy to Clipboard Toggle word wrap
  2. 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_hostnameoo-admin-ctl-district -c deactivate-node -i node_hostname
    # oo-admin-ctl-district -c remove-node -n district_name -i node_hostnameoo-admin-ctl-district -c remove-node -n district_name -i node_hostnameoo-admin-ctl-district -c remove-node -n district_name -i node_hostnameoo-admin-ctl-district -c remove-node -n district_name -i node_hostname
    Copy to Clipboard Toggle word wrap
  3. Delete the empty district:
    # oo-admin-ctl-district -c destroy -n district_nameoo-admin-ctl-district -c destroy -n district_name
    Copy to Clipboard Toggle word wrap
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat