Many have attempted to uninstall Microsoft Edge from Windows PowerShell using the Remove-AppxPackage cmdlet. However, Microsoft blocks certain first-party apps, including Microsoft Edge, from being removed this way.
It turns out that you can trick Windows into accepting the uninstallation of Microsoft Edge by giving it an end-of-life status manually. To do this, simply create the following registry key.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\EndOfLife\‹your Windows account SID›\‹package full name of Microsoft Edge›
You can obtain your Windows account SID (security identifier) by executing whoami.exe -user in command line. To get the full package name of Microsoft Edge, use the Get-AppxPackage cmdlet in PowerShell.
Watch the video below to get an idea of how it works.
The same trick applies to any other “protected” AppX packages as well, such as “Contact Support” and “Send Feedback” (and, in Windows 10 Anniversary Update, the “Secure Assessment Browser” (or “Take a Test”)).
Please share this article if you find it useful.