Is it safe to uninstall Chocolatey


Is it safe to uninstall Chocolatey after I have installed applications with it?

I want to set up software for new PCs using Chocolatey, but want to remove the C:\Chocolatey folder. As far as I understand Chocolatey uses the native installers, so the programs appear in "Add and remove programs" of Windows and can be maintained that way. Chocolatey seems not needed any more by the user.

Best Answer

As a general rule of thumb, yes, it is "safe" to uninstall Chocolatey. Chocolatey, for the most part, is simply a wrapper around the native EXE/MSI for the application that is being installed. As a result, removing Chocolatey, does not remove the installed applications.

There are some types of Applications, for instance, Command Line/Portable ones, that will have an adverse effect by removing Chocolatey, so you may want to take some care here. For instance, when installing say GitVersion.Portable, Chocolatey adds a "shortcut" to the resulting EXE in the Chocolatey bin folder (which is on the system path). By uninstalling Chocolatey, this "shortcut" and potentially the EXE itself, will be removed, so this application will no longer function.

I would suggest that you take a look at the Chocolatey\Lib folder, and see which packages you have installed with Chocolatey before uninstalling, so that you can verify that no applications fall into this category.

Hope that helps!

The steps to uninstall Chocolatey are listed here.

As a side note, starting with Chocolatey, the default Chocolatey Path is no longer C:\Chocolatey, but rather C:\ProgramData\Chocolatey.