How to remove the chef if once it is bootstrapped


I have bootstrapped one of my linux machine and now I want to remove the chef client from the machine and want my machine to be in earlier stage.

Can anyone suggest how that can be achieved.

Thanks in advance

There is no general way to undo what Chef has done on a machine, but if you mean just Chef itself you can uninstall the relevant RPM or deb through the relevant tools and then rm -rf /etc/chef /var/chef.

1 Like