46

The Chocolatey package manager supports silent installations via the command below. It doesn't seem to have an uninstall command.

cinst install packagename

Is there a way to uninstall an application via Chocolatey?

1
  • foe those who end up here, the correct command now is choco uninstall PackageName Jul 15, 2019 at 19:57

2 Answers 2

53

As I answered here, you can use

cuninst packagename

to uninstall a package.

Details can be found at Uninstall Command.

Edit: For new versions, should use choco uninstall packagename.

5
  • this is the correct way to uninstall anything from chocolatey Feb 21, 2013 at 9:56
  • Uninstall-ChocolateyPackage.ps1 & UnInstall-ChocolateyZipPackage.ps1 are now provided within %chocolateyinstall%\helpers\functions (at least in v>=0.9.8.20). You could <requires> this version of chocolatey or review the trunk and determine which version contains both helper functions.
    – brandeded
    Sep 9, 2013 at 15:57
  • Just spoke to Rob Reynolds in #chocolatey on freenode and he stated that these helper functions aren't ready for prime time yet, so avoid their use for a bit. When they are ready they will be listed here: Contibute and/or Helpers Reference.
    – brandeded
    Sep 9, 2013 at 19:18
  • 1
    Yes but it does not work. It says done. But it did nothing eg for the nodejs.install package. It could at least say : I am sorry I cant do that. Jun 29, 2014 at 19:51
  • 1
    It's now choco uninstall packagename (cinst is going soon)
    – Chris S
    Jan 2, 2016 at 22:22
18

Update: Chocolatey now has primitive support for uninstall through 'cuninst packagename'. With that though the package authors need to provide a chocolateyUninstall.ps1 file that would undo all of the things that the install did. It's limited because

  • There are no functions defined in the Chocolatey PowerShell module that would help with uninstall
  • There is no automatic removal of MSIs
  • Uninstall only removes the most current version of a package in the machine repository (instead of giving you options to remove a certain one or all of them)
3

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.