Chapter 10. Uninstalling a OpenShift Container Platform cluster
To uninstall OpenShift Container Platform across all hosts in your cluster, change to the playbook directory and run the playbook using the inventory file you used most recently:
# ansible-playbook [-i /path/to/file] \ 1
/usr/share/ansible/openshift-ansible/playbooks/adhoc/uninstall.yml- 1
- If your inventory file is not in the /etc/ansible/hosts directory, specify
-iand the path to the inventory file.
10.1. Uninstalling nodes
To uninstall node components from specific hosts using the uninstall.yml playbook while leaving the remaining hosts and cluster alone:
Use this method only when attempting to uninstall specific node hosts, not specific masters or etcd hosts. Uninstalling master or etcd hosts requires more configuration changes in the cluster.
- Follow the steps in Deleting Nodes to remove the node object from the cluster.
Create a different inventory file that references only those hosts. For example, to delete content from only one node:
[OSEv3:children] nodes 1 [OSEv3:vars] ansible_ssh_user=root openshift_deployment_type=openshift-enterprise [nodes] node3.example.com openshift_node_group_name='node-config-infra' 2
Change to the playbook directory and run the uninstall.yml playbook:
# ansible-playbook -i /path/to/new/file \ 1 /usr/share/ansible/openshift-ansible/playbooks/adhoc/uninstall.yml- 1
- Specify the path to the new inventory file.
When the playbook completes, all OpenShift Container Platform content is removed from the specified hosts.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.