Skip to content

Instantly share code, notes, and snippets.

@gpetrousov
Last active June 5, 2018 09:38
Show Gist options
  • Save gpetrousov/f1cd386c72399b6f4beebff840e77997 to your computer and use it in GitHub Desktop.
Save gpetrousov/f1cd386c72399b6f4beebff840e77997 to your computer and use it in GitHub Desktop.
Uninstall DCOS cluster
# Deprovision a DCOS cluster
# https://docs.mesosphere.com/1.7/administration/installing/oss/custom/uninstall/
# This script will remove all directories associated with DCOS.
# Execute this script on the Master and Agent boxes to get rid of any DCOS installations.
# After that, you will be able to initiate a new DCOS installation from the dcos_install.sh script.
# 05-06-2018
# Ioannis Petrousov
# petrousov@gmail.com
pkill -f mesosphere
rm -fr /etc/mesosphere/
rm -fr /var/lib/dcos/
rm -fr /opt/mesosphere
rm -fr /run/dcos/
rm -fr /etc/systemd/system/dcos-*
rm -fr /etc/systemd/system/dcos.target
rm -fr /etc/systemd/system/dcos*
rm -fr /etc/profile.d/dcos.sh
rm -fr /etc/systemd/system/multi-user.target.wants/dcos-setup.service
rm -fr /etc/systemd/system/multi-user.target.wants/dcos.target
rm -fr /etc/systemd/journald.conf.d/dcos.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment