PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

winget uninstall Microsoft.PowerToys --purge did not purge data

Open jcrben opened this issue 1 year ago • 1 comments

Microsoft PowerToys version

0.80.0 and 0.78.0

Installation method

WinGet

Running as admin

No

Area(s) with issue?

Settings

Steps to reproduce

Steps:

  • I installed via winget, then imported my settings. I was prompted to upgrade to 0.80 after installing
  • I then uninstalled via winget w/ the purge flag: winget uninstall Microsoft.PowerToys --purge.
  • I then reinstalled the specific 0.78.0 version via winget and noticed that I had all my old settings without importing
  • I did this steps to fix this bug: https://github.com/microsoft/PowerToys/issues/32143

Background: I like to start from a fresh, clean state - especially if I'm trying to reproduce an error. My configuration is backed up separately in a version-controlled repository.

I noticed that winget has a --purge flag (see https://github.com/microsoft/winget-cli/issues?q=is%3Aopen+label%3ACommand-Uninstall+purge for the very limited discussion in issues around that flag).

✔️ Expected Behavior

After uninstalling with --purge and reinstalling, my configuration should not load.

❌ Actual Behavior

After uninstalling with --purge and reinstalling, my configuration did load.

Other Software

No response

jcrben avatar Apr 06 '24 21:04 jcrben

Hi @jcrben

I am not familiar with the --purge switch but from what I can understand from the docs it applies only to portable packages (PowerToys uses an MSI installer). If you want to manually delete all settings after uninstalling PowerToys you can manually delete %LOCALAPPDATA%\Microsoft\PowerToys folder.

/needinfo

davidegiacometti avatar Apr 28 '24 14:04 davidegiacometti

OK, I didn't realize that --purge didn't apply. Ideally winget could notify the user in such an instance.

Broadly, purge is a nice feature and these are both microsoft projects so msft could could figure out how to support it.

Feel free to close this

jcrben avatar Apr 30 '24 17:04 jcrben