How to Uninstall Microsoft Edge via Command Prompt (CMD)

Are you tired of Microsoft Edge hijacking your default browser settings, popping up notifications, or auto-updating against your will? 😀 You're not alone! As Windows' default browser, Microsoft Edge is deeply integrated, making traditional uninstalls tricky. But fear not – using Command Prompt (CMD) gives you superuser control to uninstall Microsoft Edge completely. This guide delivers precise, battle-tested steps for the latest Windows versions, ensuring a clean removal without leftovers. Let's dive in and reclaim your PC! πŸš€

Command Prompt window ready for uninstalling Microsoft Edge

⚠️ Important Warnings Before You Start

  • Backup your data: Though rare, mistakes can affect system stability.
  • Run as Administrator: CMD must have elevated privileges.
  • Edge may reinstall: Windows Updates can bring it back. We'll cover prevention tips.
  • This works on Windows 10/11 (including latest builds). Not for Edge on ARM or enterprise-managed PCs.

Prerequisites: Get CMD Ready in 30 Seconds

  1. Press Win + R, type cmd, then press Ctrl + Shift + Enter. βœ…
  2. Click "Yes" on the UAC prompt.
  3. Verify admin: Type whoami and hit Enter – it should show "administrator".

Method 1: PowerShell via CMD (Most Reliable for Full Removal) ⭐

The gold standard for uninstalling Microsoft Edge via Command Prompt. PowerShell targets Edge's provisioned packages, removing it for all users. Copy-paste these exact commands!

  1. Remove for current user:
    powershell -Command "Get-AppxPackage *edge* | Remove-AppxPackage"
  2. Remove for all users (provisioned):
    powershell -Command "Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like '*Microsoft.MicrosoftEdge*' | Remove-AppxProvisionedPackage -Online"
  3. Restart your PC: shutdown /r /t 0

Voila! Edge is gone from Start Menu, desktop, and defaults. If it lingers, proceed to cleanup.

Executing PowerShell command in CMD to uninstall Microsoft Edge successfully

Method 2: Winget Uninstall (Newest, One-Liner Magic) ✨

For the latest Windows with Winget pre-installed (Windows 10 1809+), this is lightning-fast. Winget is Microsoft's official package manager – no downloads needed!

  1. Update Winget: winget upgrade --all
  2. Uninstall Edge:
    winget uninstall "Microsoft.Edge"
  3. Force if stubborn: winget uninstall "Microsoft.Edge" --force

Pro tip: List installed Edges first with winget list edge to confirm versions. πŸŽ‰

Method 3: Direct Installer Cleanup (For Stubborn Stable Channel Edge)

If Methods 1-2 fail (rare on non-default installs), target the executable directly.

  1. Navigate: cd "%PROGRAMFILES(X86)%\Microsoft\Edge\Application"
  2. List versions: dir /b Installer
  3. Uninstall (replace [VERSION] e.g., 128.0.2739.42):
    "%PROGRAMFILES(X86)%\Microsoft\Edge\Application\[VERSION]\Installer\setup.exe" --uninstall --system-level --force-uninstall

Cleanup Leftovers: Registry & Files (Optional but Recommended)

Ensure no ghosts remain. Use these post-uninstall.

Task CMD Command
Delete Edge folders rd /s /q "%LOCALAPPDATA%\Microsoft\Edge"
rd /s /q "%PROGRAMFILES(X86)%\Microsoft\Edge"
Clean registry (backup first!) reg delete "HKLM\SOFTWARE\Microsoft\EdgeUpdate" /f
Prevent reinstall Block via Group Policy: gpedit.msc β†’ Computer Config β†’ Administrative Templates β†’ Windows Components β†’ Edge β†’ "Prevent installation"

Troubleshooting Common Errors πŸ”§

  • "Access Denied": Re-run CMD as admin. πŸ›‘οΈ
  • "Package not found": Edge variant? Try Get-AppxPackage *MicrosoftEdge* to list.
  • Reinstalls on update: Disable Edge updates in regedit (HKLM\SOFTWARE\Policies\Microsoft\EdgeUpdate β†’ UpdateDefault = 0). Or use Microsoft Docs.
  • Windows 11 specifics: If SxS (side-by-side) Edge persists, add --msedge flag in winget.

Alternatives After Uninstall: Better Browsers Await!

Now that Edge is history, try these:

  • Google Chrome or Firefox for speed.
  • Brave for privacy (blocks ads natively). 😎
  • Set defaults: Settings β†’ Apps β†’ Default apps.

Congratulations! You've mastered how to uninstall Microsoft Edge via Command Prompt. Your PC feels lighter already. Share this guide if it helped – and drop a comment below: What browser are you switching to? πŸ‘‡ Stay tuned for more CMD hacks!

Leave a Comment

Troubleshooting Microsoft Edge DirectX Runtime Compatibility Errors

Troubleshooting Microsoft Edge DirectX Runtime Compatibility Errors

Struggling with Microsoft Edge "DirectX Runtime" compatibility errors? Discover step-by-step fixes to resolve crashes, video glitches, and performance issues in Edge. Get back to smooth browsing today!

Troubleshooting Microsoft Edge SSL Protocol Errors (ERR_SSL_PROTOCOL_ERROR)

Troubleshooting Microsoft Edge SSL Protocol Errors (ERR_SSL_PROTOCOL_ERROR)

Struggling with ERR_SSL_PROTOCOL_ERROR in Microsoft Edge? Discover step-by-step fixes for SSL protocol errors, from clearing cache to advanced resets. Get back online fast with our ultimate guide.

How to Fix Microsoft Edge Script Error When Printing

How to Fix Microsoft Edge Script Error When Printing

Tired of Microsoft Edge "Script Error" ruining your prints? Follow our proven, step-by-step guide to fix it quicklyβ€”no tech expertise required. Works on the latest Edge versions for seamless printing.

How to Disable Microsoft Edge WebView2 Runtime Permanently

How to Disable Microsoft Edge WebView2 Runtime Permanently

Master how to disable Microsoft Edge WebView2 Runtime permanently and reclaim your PC resources for epic gaming. Step-by-step methods to stop background drain, boost FPS, and keep it gone forever – perfect for gamers!

How to Fix Microsoft Edge Too Many Redirects Error

How to Fix Microsoft Edge Too Many Redirects Error

Struggling with Microsoft Edge "Too Many Redirects" error? Discover step-by-step fixes to resolve ERR_TOO_MANY_REDIRECTS instantly. Clear cache, reset settings, and more for smooth browsing. Updated for latest Edge versions.

Solving Microsoft Edge Youtube Lag and Stutter (2026)

Solving Microsoft Edge Youtube Lag and Stutter (2026)

Tired of YouTube lag and stutter in Microsoft Edge? Get instant fixes for smooth playback in 2026. Step-by-step guide to resolve Microsoft Edge YouTube lag, clear cache, disable hardware acceleration, and more for seamless streaming.

Troubleshooting Microsoft Edge Application Error 0xc000007b

Troubleshooting Microsoft Edge Application Error 0xc000007b

Stuck with Microsoft Edge Application Error 0xc000007b? Follow our step-by-step troubleshooting guide with proven fixes to resolve it fast and restore smooth browsing. No tech skills needed!

How to Customize Microsoft Edge Sidebar for Daily Tasks

How to Customize Microsoft Edge Sidebar for Daily Tasks

Discover step-by-step ways to customize Microsoft Edge Sidebar for daily tasks. Pin tools like email, weather, and calendars to boost productivity effortlessly in the latest Edge updates.

Solving Unrecognized Disc for Backward Compatible Games

Solving Unrecognized Disc for Backward Compatible Games

Tired of the frustrating "Unrecognized Disc" error blocking your backward compatible games? Get step-by-step fixes for Xbox Series X|S to play Xbox 360 and original Xbox titles smoothly. Proven solutions inside!

How to Fix Microsoft Edge 15 Access Denied Error

How to Fix Microsoft Edge 15 Access Denied Error

Struggling with Microsoft Edge "15 Access Denied" Error? Discover step-by-step fixes to resolve it quickly. Clear cache, reset settings, and more for seamless browsing in 2026.