Open Powershell. (NOTE: Strongly recommend using fresh Windows install, and trying in a VM first to see if this method works for your use-case.)
Type Get-AppxPackage | Remove-AppxPackage. (See note about Windows 11 below – this is for 10 only.)
Ignore any error messages about packages that can’t be removed, it’s fine.
Read more HereNOTE: WIN 11 IS DIFFERENT; READ LINK FOR DETAILS!