:: Remove NoRemove from Microsoft Edge uninstall key
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f
:: Delete experiment_control_labels value if it exists
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\ClientState{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}" /v experiment_control_labels /f
:: Add AllowUninstall value to EdgeUpdateDev key
reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdateDev" /v AllowUninstall /t REG_DWORD /d 1 /f
run these 3 in command prompt and then run Uninstall from windows settings, edge will be uninstalled after
edge restores itself on feature updates (e. g. 20h2 to 22h2) and on repair installs, you can just do this again