Skip to content

Remove Microsoft Edge ​

Overview ​

  • ID/URL: remove-edge
  • Description: Removes Microsoft Edge from Windows.
  • Risk Level: Caution

Added Version

This tweak was added in 2.22.0, Sparkle 2.22.0+ is required.

Details ​

Removes Microsoft Edge from Windows by uninstalling it.

Tweak Warning

Removing Microsoft Edge may cause issues with windows services/apps that rely on it.

Recommended

This tweak is recommended.

Apply ​

powershell
try {
  New-Item -Path "$Env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe" -Force
  $Path = Resolve-Path -Path "$Env:ProgramFiles (x86)\Microsoft\Edge\Application\*\Installer\setup.exe" | Select-Object -Last 1
  Start-Process -FilePath $Path -ArgumentList '--uninstall --system-level --force-uninstall --delete-profile' -Wait
  Write-Host "Microsoft Edge was removed" -ForegroundColor Green
}
catch {
    Write-Host "Failed to remove Microsoft Edge: $_" -ForegroundColor Red
}

Unapply ​

powershell
Write-Host 'Installing Microsoft Edge With Winget.'
winget install Microsoft.Edge --source winget