How to Uninstall OpenPAI

The uninstallation of OpenPAI is irreversible: all the data will be removed and you cannot find them back. If you need a backup, do it before uninstallation.

First, log in to the dev box machine and delete all PAI services:

./paictl.py service delete

Now all PAI services and data are deleted. If you want to destroy the Kubernetes cluster too, please go into ~/pai-deploy/kubespray folder, run:

ansible-playbook -i inventory/pai/hosts.yml reset.yml --become --become-user=root -e "@inventory/pai/openpai.yml"

We recommend you to keep the folder ~/pai-deploy for re-installation.