scoop uninstall scoop shouldn't remove persist data

Created on 6 Nov 2018  ·  5Comments  ·  Source: lukesampson/scoop

Uninstalling scoop deletes all persist data. This is not intuitive given that uninstalling an app won't delete the app's persist data. As you can probably guess, I just lost all all my persist data in an attempt to install scoop from scratch. 🤦‍♂️

Most helpful comment

Yep 👍

All 5 comments

maybe a option would be have "remove" just for delete the app and "uninstall" for delete everything?

@John3 There is option already. --purge is your "uninstall", but he is talking about whole scoop, not just some application. Scoop does not respect this option.

@r15ch13 Could this line be conditionial based on used purge argument?

https://github.com/lukesampson/scoop/blob/d28a12fe5049c0146ec80216f047ab8a60d489c7/bin/uninstall.ps1#L68

Update

Forgot this line appending $purge

https://github.com/lukesampson/scoop/blob/571e65953e73f78fa1c43e327275afef0d705d61/libexec/scoop-uninstall.ps1#L33

@Ash258 yes, or it just deletes apps, buckets, cache, modules and shims leaving the persist directory.

So basically adding, purge parameter, and running if ($purge) {Get-ChildItem $scoopdir -Exclude 'persist' | Remove-Item -Recurse -Force} same for global.

Yep 👍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

muhlpachr picture muhlpachr  ·  3Comments

notlmn picture notlmn  ·  3Comments

SinisterBlade picture SinisterBlade  ·  3Comments

thorstenkampe picture thorstenkampe  ·  3Comments

yetangye picture yetangye  ·  3Comments