
WINDOWS 10 & 11 SYSTEM GUIDE • OPEN-SOURCE SCRIPT • UPDATED NOVEMBER 2026
How to Completely Remove Microsoft Edge from Windows 10 & Windows 11 (2026 Guide + Free Script)
If you try to uninstall Microsoft Edge normally through Windows Settings → Apps, you have probably noticed that the Uninstall button is greyed out. Even after switching to Chrome, Firefox, or Brave, Microsoft Edge stays installed, runs background updaters, and often returns after Windows Updates.
In this step-by-step guide, you will learn how to cleanly and safely remove Microsoft Edge from Windows 10 and Windows 11 — automatically in one click with our open-source remove_edge.bat tool or manually via Command Prompt — while keeping Edge WebView2 Runtime intact so desktop apps keep working properly.
Before You Start: Important Safety Checklist
- Export Edge Bookmarks & Passwords: Uninstalling Edge permanently clears local Edge bookmarks, passwords, history, cookies, and extensions. Export anything important from
edge://favoritesandedge://settings/passwordsfirst. - Install an Alternative Browser First: Make sure Chrome, Firefox, Brave, or Opera is already installed before removing Edge.
- WebView2 Runtime Stays Safe: Desktop apps (Microsoft Teams, Windows Widgets, Outlook, and utility apps) depend on Edge WebView2 Runtime. Our script leaves WebView2 untouched.
Method 1: 1-Click Automated Removal with remove_edge.bat (Recommended)
Download and run our lightweight open-source batch script from the Windows & PC Tools Hub. It unlocks the hidden Edge uninstaller, stops Edge background update tasks, cleans shortcuts, and prevents Windows Update from automatically reinstalling Edge.
Download Free Script: remove_edge.bat (Windows 10 & 11 • Open Source • ~5 KB)
Inspect Full Source Code (remove_edge.bat — 130 Lines)
@echo off
title Remove Microsoft Edge and User Data (Windows 10)
:: 1. Ensure Administrator privileges
net session >nul 2>&1
if %errorLevel% neq 0 (
echo [ERROR] Administrator privileges are required.
echo Right-click this .bat file and select "Run as administrator".
pause
exit /b 1
)
echo ============================================================================
echo WARNING: This will uninstall Microsoft Edge and permanently delete all
echo Edge user data (bookmarks, passwords, history, cookies, and extensions).
echo Note: Edge WebView2 Runtime is preserved so desktop apps keep working.
echo ============================================================================
echo.
setlocal EnableDelayedExpansion
set "CONFIRM="
set /p "CONFIRM=Type YES to continue: "
if /i not "!CONFIRM!"=="YES" (
echo Operation cancelled.
pause
exit /b 0
)
endlocal
echo.
echo [1/6] Stopping Microsoft Edge processes and services...
for %%P in (
msedge.exe
MicrosoftEdgeUpdate.exe
elevation_service.exe
identity_helper.exe
msedge_pwa_launcher.exe
) do (
taskkill /f /im "%%P" >nul 2>&1
)
for %%S in (edgeupdate edgeupdatem MicrosoftEdgeElevationService) do (
sc stop "%%S" >nul 2>&1
sc delete "%%S" >nul 2>&1
)
echo [2/6] Running Edge uninstaller...
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f >nul 2>&1
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f >nul 2>&1
for %%D in (
"%ProgramFiles(x86)%\Microsoft\Edge\Application"
"%ProgramFiles%\Microsoft\Edge\Application"
"%LocalAppData%\Microsoft\Edge\Application"
) do (
if exist "%%~D" (
for /f "delims=" %%S in ('dir /b /s "%%~D\setup.exe" 2^>nul') do (
echo Running uninstaller: "%%S"
"%%S" --uninstall --msedge --system-level --verbose-logging --force-uninstall
"%%S" --uninstall --system-level --verbose-logging --force-uninstall
"%%S" --uninstall --user-level --verbose-logging --force-uninstall
)
)
)
:: Remove UWP/Appx Edge packages if present
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
"Get-AppxPackage -AllUsers *Microsoft.MicrosoftEdge.Stable* | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue; Get-AppxPackage *Microsoft.MicrosoftEdge* | Where-Object { $_.NonRemovable -eq $false } | Remove-AppxPackage -ErrorAction SilentlyContinue" >nul 2>&1
echo [3/6] Removing Edge Update scheduled tasks...
for /f "tokens=1 delims=," %%T in ('schtasks /query /fo csv /nh 2^>nul ^| findstr /i "MicrosoftEdgeUpdate"') do (
schtasks /delete /tn "%%~T" /f >nul 2>&1
)
echo [4/6] Deleting Edge program folders, user data, and shortcuts...
for %%F in (
"%ProgramFiles(x86)%\Microsoft\Edge"
"%ProgramFiles(x86)%\Microsoft\EdgeUpdate"
"%ProgramFiles(x86)%\Microsoft\Temp"
"%ProgramFiles%\Microsoft\Edge"
"%ProgramFiles%\Microsoft\EdgeUpdate"
"%ProgramData%\Microsoft\EdgeUpdate"
) do (
if exist "%%~F" (
takeown /f "%%~F" /r /d y >nul 2>&1
icacls "%%~F" /grant administrators:F /t /q >nul 2>&1
rd /s /q "%%~F" >nul 2>&1
)
)
:: Delete Edge profile data and shortcuts for all local users
for /d %%U in ("%SystemDrive%\Users\*") do (
for %%P in (
"%%~U\AppData\Local\Microsoft\Edge"
"%%~U\AppData\Local\Microsoft\EdgeUpdate"
"%%~U\AppData\Roaming\Microsoft\Edge"
) do (
if exist "%%~P" rd /s /q "%%~P" >nul 2>&1
)
del /f /q "%%~U\Desktop\Microsoft Edge.lnk" >nul 2>&1
del /f /q "%%~U\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Microsoft Edge.lnk" >nul 2>&1
del /f /q "%%~U\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" >nul 2>&1
)
del /f /q "%Public%\Desktop\Microsoft Edge.lnk" >nul 2>&1
del /f /q "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" >nul 2>&1
echo [5/6] Cleaning Edge registry keys...
for %%K in (
"HKCU\Software\Microsoft\Edge"
"HKCU\Software\Microsoft\EdgeUpdate"
"HKLM\SOFTWARE\Microsoft\Edge"
"HKLM\SOFTWARE\WOW6432Node\Microsoft\Edge"
"HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate"
"HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge"
"HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update"
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge"
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update"
"HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{9459C573-B17A-45AE-9F64-1857B5D58CEE}"
) do (
reg delete "%%~K" /f >nul 2>&1
)
echo [6/6] Blocking automatic reinstallation via Windows Update...
reg add "HKLM\SOFTWARE\Microsoft\EdgeUpdate" /v "DoNotUpdateToEdgeWithChromium" /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate" /v "DoNotUpdateToEdgeWithChromium" /t REG_DWORD /d 1 /f >nul 2>&1
echo.
echo Done! Restart your computer to finish cleaning up any locked files.
pause
Step-by-Step Instructions
- Click Download remove_edge.bat above to save the script to your PC.
- Locate
remove_edge.batin your Downloads folder, right-click it, and choose Run as administrator. - If Microsoft Defender SmartScreen shows a warning for a downloaded
.batfile, click More info → Run anyway after checking the source code above. - Type
YESwhen asked to confirm and press Enter. Steps[1/6]through[6/6]will finish in ~10 seconds. - Restart your computer to complete cleanup.
What Does remove_edge.bat Do? (6 Transparent Steps)
- [1/6] Stops Edge Processes & Services: Ends
msedge.exe,MicrosoftEdgeUpdate.exe, andelevation_service.exe, then stops/removes background update services. - [2/6] Unlocks & Runs Official Uninstaller: Deletes the
NoRemoveregistry lock, runs Microsoft Edge’s built-insetup.exe --uninstall --msedge --system-level --force-uninstall, and removes UWP/Appx Edge packages where removable. - [3/6] Removes Scheduled Tasks: Clears automatic
MicrosoftEdgeUpdatescheduled tasks that silently restore Edge. - [4/6] Removes Program Folders, Caches & Shortcuts: Cleans leftover Edge directories, user profile Edge caches, and Desktop/Start Menu/Taskbar shortcuts.
- [5/6] Cleans Registry Uninstall Keys: Removes stale Edge uninstall and Active Setup entries from
HKCUandHKLM. - [6/6] Blocks Auto-Reinstall via Windows Update: Adds
DoNotUpdateToEdgeWithChromium = 1underEdgeUpdatepolicy keys so Windows Update stops reinstalling Chromium Edge automatically.
Method 2: How to Remove Microsoft Edge Manually (Without Downloading Any File)
If you prefer running commands yourself inside Windows Terminal or Command Prompt:
- Open Start, type
cmd, right-click Command Prompt, and select Run as administrator. - Open the
Installerfolder insideC:\Program Files (x86)\Microsoft\Edge\Application\<YOUR_VERSION>\Installer:cd "C:\Program Files (x86)\Microsoft\Edge\Application\YOUR_VERSION\Installer" - Run Edge’s official uninstall command:
setup.exe --uninstall --msedge --system-level --verbose-logging --force-uninstall - Block automatic Windows Update reinstallation:
reg add "HKLM\SOFTWARE\Microsoft\EdgeUpdate" /v "DoNotUpdateToEdgeWithChromium" /t REG_DWORD /d 1 /f
How to Reinstall Microsoft Edge Later if Needed
Uninstalling Microsoft Edge is completely reversible. Anytime you need it back, download it from microsoft.com/edge or install it from the Microsoft Store.
Frequently Asked Questions (FAQs)
Is it safe to uninstall Microsoft Edge on Windows 10 and Windows 11?
Yes, as long as Microsoft Edge WebView2 Runtime remains installed for Windows apps that embed web views. Our remove_edge.bat script preserves WebView2 automatically.
Will removing Edge break Windows Update or system apps?
No. Security patches and Windows Updates continue working normally. Setting DoNotUpdateToEdgeWithChromium = 1 only blocks automatic Chromium Edge reinstallation.
Why do I need to run the script as Administrator?
Because Microsoft Edge is installed system-wide in Program Files (x86) and protected by Windows services and HKEY_LOCAL_MACHINE policies.