Skip to content

Instantly share code, notes, and snippets.

@kwilczynski
Created November 26, 2014 20:11
Show Gist options
  • Save kwilczynski/491227d9813702e18151 to your computer and use it in GitHub Desktop.
Save kwilczynski/491227d9813702e18151 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
@kwilczynski
Copy link
Author

Good sample, but looks like chef-server-ctl kill won't pass due to missed arguments ( https://docs.chef.io/ctl_chef_server.html#kill )

That is a good point, although by default it should send SIGKILL to all services, as per (from the page you linked):

The kill subcommand is used to send a SIGKILL to all services. This command can also be run for an individual service by specifying the name of the service in the command.

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