Important
Working on the latest supported Windows versions. Run Windows Update before following this guide.
1. Open Powershell > RUN AS ADMIN
2. Paste in irm https://gist.github.com/ave9858/c3451d9f452389ac7607c99d45edecc6/raw/UninstallEdge.ps1 | iex and press enter
3. Microsoft Edge will be completely uninstalled.
Note
The Microsoft Edge Update service might remain, this is normal as it is required for updating WebView2.

not sure about 24h2 and 25h2
works fine on 23h2
haven't tested on 10