How to Uninstall Msix installed application from all users with winAPIs

Sreekanth N Kartha 60 Reputation points
2025-06-20T12:06:32.45+00:00

What Windows API can be used to completely remove all residual data of an MSIX-installed application, including cleaning up the associated folder under "C:\Program Files\WindowsApps"?

Windows development Windows API - Win32
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Darran Rowe 1,986 Reputation points
    2025-06-21T14:39:14.7933333+00:00

    The functionality is available in the Windows.Management.Deployment.PackageManager runtime class and the Windows.Management.Deployment namespace in general.If, by Windows API, you don't include the Windows Runtime API, then please take note that I am suggesting this fully understanding that you may want to run this in a desktop application. The PackageManager runtime class works without issue in desktop applications.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.