# How to remove the chef if once it is bootstrapped

**URL:** <https://discourse.chef.io/t/how-to-remove-the-chef-if-once-it-is-bootstrapped/10300>\
**Category:** Chef Infra (archive)\
**Created:** [January 26, 2017, 6:38am UTC](https://discourse.chef.io/t/how-to-remove-the-chef-if-once-it-is-bootstrapped/10300 "2017-01-26T06:38:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Rohit](https://discourse.chef.io/u/Rohit)\
**Post date:** [January 26, 2017, 6:38am UTC](https://discourse.chef.io/t/how-to-remove-the-chef-if-once-it-is-bootstrapped/10300/1 "2017-01-26T06:38:17Z")

</div>

Hello

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

---

<div class="post-metadata">

**Author:** ![coderanger](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/coderanger/32/5_2.png) [@coderanger](https://discourse.chef.io/u/coderanger)\
**Post date:** [January 26, 2017, 6:41am UTC](https://discourse.chef.io/t/how-to-remove-the-chef-if-once-it-is-bootstrapped/10300/2 "2017-01-26T06:41:48Z")

</div>

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`.
