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 Do You Know When Your Business Is Ready For Its First Office?

How Do You Know When Your Business Is Ready For Its First Office?

For many entrepreneurs, moving into a first office feels like a major milestone. It can signal growth, stability, and a new level of professionalism. However, it is also a decision that should be made carefully.

How AI Checkers Work: Behind the Detection Process

How AI Checkers Work: Behind the Detection Process

As AI writing tools become more advanced, many people want a reliable way to identify machine-written text. This is where an AI checker comes into the picture.

How to Fix Microsoft Edge Cant Read and Write to Data Directory

How to Fix Microsoft Edge Cant Read and Write to Data Directory

Frustrated by Microsoft Edge "Can't Read and Write to Data Directory" error? Get step-by-step fixes, from quick resets to advanced troubleshooting, to restore your browser fast. Works on latest versions!

How to Fix Microsoft Edge Windows Update Catalog Error

How to Fix Microsoft Edge Windows Update Catalog Error

Tired of the frustrating Microsoft Edge "Windows Update Catalog" Error blocking your updates? Discover proven, step-by-step fixes that work on the latest Windows versions. Get back online in minutes!

How to Fix Microsoft Edge OBS Studio Black Screen

How to Fix Microsoft Edge OBS Studio Black Screen

Struggling with Microsoft Edge black screen in OBS Studio? Discover step-by-step fixes for hardware acceleration issues, capture settings, and more. Get your stream crystal clear today!

How to Link Your Microsoft Edge Account to Your Phone

How to Link Your Microsoft Edge Account to Your Phone

Master how to link your Microsoft Edge account to your phone for seamless syncing of tabs, passwords, and bookmarks. Step-by-step guide for Android and iOS with troubleshooting tips.

How to Fix Microsoft Edge System Sounds Missing Fix

How to Fix Microsoft Edge System Sounds Missing Fix

Struggling with Microsoft Edge "System Sounds" missing? Our ultimate guide provides step-by-step fixes to restore notifications, alerts, and browser sounds quickly and easily. Works flawlessly on the latest versions.

How to Fix Microsoft Edge DNS Probe Finished No Internet

How to Fix Microsoft Edge DNS Probe Finished No Internet

Struggling with Microsoft Edge "DNS Probe Finished No Internet" error? Discover step-by-step fixes to restore your browsing instantly. Flush DNS, change servers, and more โ€“ no tech skills needed!

Troubleshooting Microsoft Edge Profile is Already in Use

Troubleshooting Microsoft Edge Profile is Already in Use

Tired of the frustrating Microsoft Edge "Profile is Already in Use" error blocking your browsing? Follow our proven, step-by-step troubleshooting fixes to resolve it quickly and regain smooth performance. Works on latest versions!

Troubleshooting Microsoft Edge Stream Deck App Not Opening

Troubleshooting Microsoft Edge Stream Deck App Not Opening

Facing Microsoft Edge "Stream Deck" app not opening? Discover proven troubleshooting steps, quick fixes, and expert tips to resolve crashes, freezes, and launch issues fast. Get back to streaming seamlessly.