Skip to content

Instantly share code, notes, and snippets.

@angelwingss
Forked from ave9858/EdgeUninstallGuide.md
Created August 26, 2025 17:06
Show Gist options
  • Save angelwingss/d2272f3e4651769e17bc3b843f2b2ed9 to your computer and use it in GitHub Desktop.
Save angelwingss/d2272f3e4651769e17bc3b843f2b2ed9 to your computer and use it in GitHub Desktop.

Edge Chromium

HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge, remove NoRemove.

HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\ClientState\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}, delete experiment_control_labels if it exists.

Create HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdateDev and add the AllowUninstall value. This replaces the experiment_control_labels blocker on later versions of Edge Update.

Run uninstall in Settings or Control Panel.

If both WebView2 and Edge Chromium are uninstalled, Microsoft Edge Update will uninstall itself.

EdgeUWP

Delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\Microsoft.MicrosoftEdge_x.x.x.x_neutral__8wekyb3d8bbwe (The version will vary depending on your Windows version). This will ensure EdgeUWP is not installed on new accounts.

To remove EdgeUWP on existing accounts, create a key under EndOfLife named the SID of the account that has EdgeUWP, and create a key under that named Microsoft.MicrosoftEdge_8wekyb3d8bbwe. After that, you can use Remove-AppxPackage in powershell to remove. Remove the Microsoft.MicrosoftEdge_8wekyb3d8bbwe key after (THIS STEP IS IMPORTANT, WINDOWS UPDATE WILL ERROR IF YOU DON'T!).

A repair install or upgrade will restore both Edge Chromium and EdgeUWP. Edge Chromium can also be reinstalled using the installer. (https://www.microsoft.com/en-us/edge/download)

$regView = [Microsoft.Win32.RegistryView]::Registry32
$microsoft = [Microsoft.Win32.RegistryKey]::OpenBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine, $regView).
OpenSubKey('SOFTWARE\Microsoft', $true)
$edgeClient = $microsoft.OpenSubKey('EdgeUpdate\ClientState\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}', $true)
if ($null -ne $edgeClient.GetValue('experiment_control_labels')) {
$edgeClient.DeleteValue('experiment_control_labels')
}
$microsoft.CreateSubKey('EdgeUpdateDev').SetValue('AllowUninstall', '')
$uninstallRegKey = $microsoft.OpenSubKey('Windows\CurrentVersion\Uninstall\Microsoft Edge')
$uninstallString = $uninstallRegKey.GetValue('UninstallString') + ' --force-uninstall'
Start-Process cmd.exe "/c $uninstallString" -WindowStyle Hidden
$appxStore = '\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore'
$pattern = "HKLM:$appxStore\InboxApplications\Microsoft.MicrosoftEdge_*_neutral__8wekyb3d8bbwe"
$key = (Get-Item -Path $pattern).PSChildName
reg delete "HKLM$appxStore\InboxApplications\$key" /f
$SID = (New-Object System.Security.Principal.NTAccount($env:USERNAME)).Translate([Security.Principal.SecurityIdentifier]).Value
New-Item -Path "HKLM:$appxStore\EndOfLife\$SID\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" -Force
Get-AppxPackage -Name Microsoft.MicrosoftEdge | Remove-AppxPackage
Remove-Item -Path "HKLM:$appxStore\EndOfLife\$SID\Microsoft.MicrosoftEdge_8wekyb3d8bbwe"
Write-Output "Edge should now be uninstalled!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment