Also, this is typically the approach you will use to install Windows 11 when replacing the hard drive.
This method allows you to decommission the device safely without giving away your personal files. If you have a new computer, wiping out the current setup and doing a fresh installation is an excellent solution to deal with bloatware that comes preloaded with the original manufacturer image. Furthermore, and perhaps more importantly, a Windows 11 clean install can improve battery life and is the best method to get rid of viruses and other types of malware. For example, to fix memory, shut down, startup, apps, stability, and performance issues. Or you can use this method to resolve issues with an existing setup. A clean installation of Windows 11 is the process of completely erasing the computer's hard drive and applying a fresh copy of the OS to configure a new laptop or desktop computer.