Skip to content

Instantly share code, notes, and snippets.

@GabiNun
Last active December 11, 2025 23:33
Show Gist options
  • Select an option

  • Save GabiNun/c576d453134e73868d535f52bcf5d120 to your computer and use it in GitHub Desktop.

Select an option

Save GabiNun/c576d453134e73868d535f52bcf5d120 to your computer and use it in GitHub Desktop.
$EdgePath = "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge"
$EdgeUWP = "$Env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe"
if (Test-Path $EdgePath) {
New-Item $EdgeUWP\MicrosoftEdge.exe -Force | Out-Null
cmd /c ((Get-ItemProperty $EdgePath).UninstallString + ' --force-uninstall --delete-profile')
Write-Host "Edge was Uninstalled" -ForegroundColor Green
} else {
Write-Output "Edge is not installed"
}

To uninstall edge open powershell as admin and run

irm https://gist.github.com/GabiNun/c576d453134e73868d535f52bcf5d120/raw/RemoveEdge.ps1 | iex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment