Search code examples
vagrantuninstallationchocolatey

How do I uninstall Vagrant from Chocolatey?


I installed Vagrant from Chocolatey and am now trying to remove it. I run the command

choco uninstall vagrant -a

Chocolatey says it removed the application though it remains in the list of applications under Chocolatey

choco list --local-only

What do I need to do to remove this application from the Chocolatey list? I have already removed the application from the computer using Control Panel.

Chocolatey version v0.9.9.2


Solution

  • It's clear that this package does not have an uninstall script. Chocolatey should at least remove the managed package installation folder. It would leave the application behind in the Programs and Features applet of the Control Panel. You rightly uninstalled it there manually.

    Newer versions of Chocolatey are supposed to handle automatically uninstalling at least MSI installers. You might explore the autoUninstaller feature.

    Your choices now are kind of limited:

    • Try forcing the uninstall (or reinstalling/uninstalling w/force):

      PS> choco uninstall vagrant -force
      
    • Manually remove the package install folder:

      PS> rm $ENV:chocolateyInstall\lib\vagrant* -recurse -force