Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lopesivan/3b8326f0cac9cb6243f2a8d24549f3c3 to your computer and use it in GitHub Desktop.
Save lopesivan/3b8326f0cac9cb6243f2a8d24549f3c3 to your computer and use it in GitHub Desktop.
Remove Chef Server
chef-server-ctl stop
chef-server-ctl kill
chef-server-ctl cleanse
chef-server-ctl uninstall
pkill -9 -u opscode
pkill -9 -f postgres
pkill -9 -f beam
pkill -9 -f /opt/chef
rm -rf /etc/opscode /etc/chef /opt/opscode /opt/chef /var/chef
rm -rf /etc/chef-server /etc/chef /opt/chef-server /opt/chef /root/.chef /var/opt/chef-server
rm -rf /var/chef /var/log/chef-server
rpm -e chef-server
rpm -e chef-server-core
@lopesivan
Copy link
Author

8
down vote

If you're on debian/ubuntu (or a system with dpkg) just check the status of the package:

dpkg --list | grep chef # or dpkg --status chef

then purge (see man dpkg):

dpkg -P chef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment