You will need to know which version you are running to ensure that this process works as intended.
To do this, you will want to open up Microsoft Edge. Then, on the top right hand side of the Edge browser window, select the Three horizontal dots and select “Settings”.

Then navigate to “About Microsoft Edge” on the bottom left side. This will show you which version of the Edge your computer has installed. Either write down the exact version number, or you can simply copy/paste it into a text document.

Step 2: Fire up Command Prompt!
To load up the Command Prompt, enter the Windows Start Menu from Step 1, and type in “cmd” or “command prompt”. Make sure to right-click on the cmd icon, and choose “Run as Administrator”. It may ask you if you wish to make changes to your computer in this case, it is perfectly fine to select “Yes”.

Step 3: Type in the magic command
This is where that version number from Step 1 comes into play.
Copy and paste the following command into the Command Prompt screen. Keep in mind that you will need to replace “Version_Number” with the Edge version you grabbed earlier.
Cd %PROGRAMFILES(X86)%MicrosoftEdgeApplicationVersion_NumberInstaller
Once you’ve added in your current version number, it should end up looking something like this example:
Example: cd %PROGRAMFILES(X86)%MicrosoftEdgeApplication94.0.992.38Installer
Now press Enter on your keyboard. This will take you to the installation folder for Microsoft Edge. Now you will paste the second command (or type it out manually)
setup.exe –uninstall –system-level –verbose-logging –force-uninstall
Once again, press Enter on your keyboard.

Once these commands have been run, it will instantly remove Microsoft Edge from your system without any further action needed. The shortcut for Edge will be removed from both your taskbar and the desktop. Searching for it in the Start Menu will only display it as a suggested browser that you can download, but it will not open if you click on it.