Here are the steps you need to follow:
1: Open Microsoft Edge on your PC.
2: Click the three-dot menu icon in the top right corner and select Help and feedback > About Microsoft Edge.
3: Copy Microsoft Edge's version number from the About section.
4: Check Microsoft Edge Version Number
5: Press Win + X and select Terminal (Admin) from the menu that appears.
6: Select Yes when the User Account Control (UAC) prompt shows up.
7: In the console, run the following commands to navigate to the
directory where Microsoft Edge is installed:
cd/
cd '.\Program Files (x86)\Microsoft\Edge\Application\EdgeVersion\Installer'
8: Replace EdgeVersion in the above command with the actual
version number noted earlier.
9: Paste the following command and press Enter to uninstall Microsoft Edge.
setup --uninstall --force-uninstall --system-level
10: Uninstall Microsoft Edge Using Command Prompt
11: Once you run the above commands, Microsoft Edge will be removed
from your PC. If you want to install the browser in the future,
you can do so by downloading it from the Microsoft Store.
Source: https: