This process is called a clean install, which is ironic as there's nothing particularly clean about it: Microsoft has enshittified Windows Setup.
European Union countries are moving away from American tech giants to run their own clouds and servers to control their digital destiny. You can do this, too. Here's how.