How do I uninstall a Chocolatey package that won't go away?

8,611

I used --force and it went away.

choco uninstall cyg-get --force
Share:
8,611

Related videos on Youtube

Chloe
Author by

Chloe

Updated on September 18, 2022

Comments

  • Chloe
    Chloe almost 2 years
    C:\Users\Chloe>choco uninstall cyg-get
    Chocolatey v0.10.8
    Uninstalling the following packages:
    cyg-get
    
    cyg-get v1.1.0
     Skipping auto uninstaller - No registry snapshot.
    
    Chocolatey uninstalled 1/1 packages.
     See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
    
    C:\Users\Chloe>choco list --local-only cyg-get
    Chocolatey v0.10.8
    cyg-get 1.1.0
    cygwin 1.7.23.20130814
    2 packages installed.
    
  • ferventcoder
    ferventcoder over 6 years
    That typically does it, you can also add -n to ensure it doesn't run scripts. If all else fails, head to $env:ChocolateyInstall\lib and remove the folder for the package.
  • Chloe
    Chloe over 6 years
    @ferventcoder I did try -n but that didn't help. I see that I didn't copy that in the question. I also tried another longer -- option it suggested that I can't remember. I believe I did try to delete a folder in a Chocolatey folder, but when I ran upgrade all it added it back.
  • ferventcoder
    ferventcoder over 6 years
    It means that there was possibly an older lingering version still sitting around that needed to also be removed.