[Package Issue]: Gyan.FFmpeg does not uninstall correctly
Please confirm these before moving forward
- [X] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
- [X] I have not been informed if the issue is resolved in a preview version of the winget client.
Category of the issue
Other
Brief description of your issue
Package Gyan.FFmpeg (v5.1.2) does not properly uninstall:

I'm using --force because otherwise it refuses to uninstall due to the package being supposedly modified, which is not the case. I even get this straight away after installing it fresh.
Notice I'm running this as Administrator because that also how I install it (due to microsoft/winget-pkgs#95349 / https://github.com/microsoft/winget-cli/issues/2909).
Steps to reproduce
(As administrator:)
winget install gyan.ffmpeg
winget uninstall gyan.ffmpeg (complains about the package being modified, which is not the case)
winget uninstall gyan.ffmpeg --force
Actual behavior
%LOCALAPPDATA%\Microsoft\WinGet\Packages\Gyan.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbwe and subfolder/files remain behind.
Expected behavior
All files/folders related to package are gone.
Environment
Windows Package Manager v1.4.10173
Windows: Windows.Desktop v10.0.22621.1105
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.0
Gyan.FFmpeg v5.1.2
Screenshots and Logs
No response
I'm using --force because otherwise it refuses to uninstall due to the package being supposedly modified, which is not the case. I even get this straight away after installing it fresh.
@denelon - sounds like a CLI issue
Actual behavior
%LOCALAPPDATA%\Microsoft\WinGet\Packages\Gyan.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbwe and subfolder/files remain behind.
Expected behavior
All files/folders related to package are gone.
If any files are created in the folder outside of just the ffmpeg application, the default behavior of winget is to preserve them when uninstalling to avoid removing user data. You can override this using --purge when uninstalling or by setting the default behavior to purge in winget settings
@mstevens83 thanks for attempting to open an issue. Unfortunately, you didn't write anything in the body which makes it impossible to understand your concern. You are welcome to fix up the issue and try again by opening another issue with the body filled out.
This has been fixed in WinGet v1.5.1081-preview release through PR https://github.com/microsoft/winget-cli/pull/3002
cc @denelon
Hi, still have the same problem on the latest stable version of Winget (v1.5.2201), on Windows 11 22h2. No matter what command I use, the process is stuck
@alexyo02 That is probably related to https://github.com/microsoft/winget-cli/issues/3279. There are a couple workarounds to fix the uninstall mentioned in that issue