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

How to Enable Sleeping Tabs in Microsoft Edge to Save RAM

How to Enable Sleeping Tabs in Microsoft Edge to Save RAM

Discover how to enable Sleeping Tabs in Microsoft Edge to dramatically save RAM and boost performance. Step-by-step guide, tips, and tweaks for maximum efficiency.

How to Fix Microsoft Edge Secure Network Encountered an Error

How to Fix Microsoft Edge Secure Network Encountered an Error

Tired of the frustrating Microsoft Edge Secure Network Error blocking your browsing? Follow our proven, step-by-step guide to fix it quickly—no tech expertise required. Get back online fast with the latest solutions.

How to Fix Microsoft Edge Wallpaper Engine Conflict Fix

How to Fix Microsoft Edge Wallpaper Engine Conflict Fix

Tired of Microsoft Edge crashing with Wallpaper Engine? Follow our step-by-step guide to fix the Microsoft Edge Wallpaper Engine conflict quickly. Proven methods for smooth browsing and stunning wallpapers.

Troubleshooting Microsoft Edge PDF Preview Handler Errors

Troubleshooting Microsoft Edge PDF Preview Handler Errors

Stuck with Microsoft Edge PDF preview handler errors? Discover proven fixes for thumbnail issues, blank previews, and more. Step-by-step guide to restore smooth PDF previews in Edge.

How to Set Microsoft Edge as Your Default PDF Viewer

How to Set Microsoft Edge as Your Default PDF Viewer

Master how to set Microsoft Edge as your default PDF viewer in minutes. Say goodbye to slow apps and hello to lightning-fast reading on Windows – step-by-step guide with tips for seamless setup.

How to Restore Previous Microsoft Edge Sessions After a Crash

How to Restore Previous Microsoft Edge Sessions After a Crash

Frustrated by Microsoft Edge crashes wiping your tabs? Discover proven steps to restore previous sessions effortlessly. Quick fixes for the latest Edge versions—no tab loss forever!

How to Fix Microsoft Edge Result_Code_Killed_Bad_Message

How to Fix Microsoft Edge Result_Code_Killed_Bad_Message

Tired of Microsoft Edge crashing with "Result_Code_Killed_Bad_Message"? Discover proven, step-by-step fixes to resolve this error quickly and restore smooth browsing. Updated for the latest Edge versions!

How to Disable Microsoft Edge Game Assist on Windows 11

How to Disable Microsoft Edge Game Assist on Windows 11

Struggling with Microsoft Edge Game Assist interrupting your games? Learn how to disable Microsoft Edge Game Assist on Windows 11 step-by-step. Simple, effective methods for gamers. Boost your performance now!

Troubleshooting Microsoft Edge Mica Effect Not Working

Troubleshooting Microsoft Edge Mica Effect Not Working

Troubleshooting Microsoft Edge "Mica Effect" not working? Discover step-by-step fixes to enable beautiful Mica transparency in Edge on Windows 11. Quick, easy solutions that work!

Troubleshooting Microsoft Edge Extensions Not Working

Troubleshooting Microsoft Edge Extensions Not Working

Microsoft Edge extensions not working? Discover proven troubleshooting steps to fix crashes, loading issues, and more. Get your browser extensions running smoothly today with our expert guide.

How to Disable Microsoft Edge Sidebar and Notifications

How to Disable Microsoft Edge Sidebar and Notifications

Struggling with annoying Microsoft Edge sidebar and notifications? Discover simple, step-by-step methods to disable Microsoft Edge sidebar and notifications for good. Enjoy a cleaner, faster browsing experience today!

Troubleshooting Microsoft Edge BitLocker Recovery Key

Troubleshooting Microsoft Edge BitLocker Recovery Key

Facing BitLocker Recovery Key issues in Microsoft Edge? This step-by-step troubleshooting guide fixes common errors fast. Retrieve your key securely from your Microsoft account without stress. Updated with latest tips!

Solving Microsoft Edge Ssl Version or Cipher Mismatch

Solving Microsoft Edge Ssl Version or Cipher Mismatch

Tired of the frustrating Microsoft Edge "SSL Version or Cipher Mismatch" error blocking your sites? Discover step-by-step fixes, from quick resets to advanced tweaks, that work on the latest Edge versions. Get back online in minutes!

Solving Microsoft Edge Certificate Error on Public Wi-Fi

Solving Microsoft Edge Certificate Error on Public Wi-Fi

Tired of Microsoft Edge Certificate Error blocking you on public Wi-Fi? Get step-by-step fixes to bypass SSL warnings safely and surf securely. Proven methods for quick resolution.

Troubleshooting Microsoft Edge 400 Bad Request Header Error

Troubleshooting Microsoft Edge 400 Bad Request Header Error

Struggling with Microsoft Edge "400 Bad Request" Header Error? Discover proven, step-by-step fixes to resolve this frustrating issue quickly. Clear cache, reset settings, and more for smooth browsing. Updated with latest Edge tips!