Windows 10 offers a recovery option to do a clean install. Warning: this option will remove installed applications and files. Do a backup of your PC before choosing this option.
This tool may be accessed by clicking Start button > Settings > Update & Security > Recovery > “More recovery options” – “Learn how to start fresh with a clean installation of Windows”. This option can also be found at www.microsoft.com/en-us/windowsinsider/cleaninstall.
Windows 10 Fresh Start will perform a clean reinstallation and update of Windows while keeping user personal data and most Windows settings intact, but Fresh Start will remove installed apps and digital licenses and digital content associated with apps. Fresh Start can be run by selecting Start > Settings > Update & Security > Windows Defender > Device performance & Health. Under Fresh Start, select Additional info > Get Started. Update: in the Windows 10 May 2020 update (version 2004), this functionality has been moved to Start > Settings > Update & Security > Recovery > Reset this PC > Get Started.
Another option for reinstalling Windows is to create installation media. Instructions for this are available at support.microsoft.com/en-us/windows/create-installation-media-for-windows-99a58364-8c02-206f-aa6f-40c3b507420d.
A list of Recovery options in Windows is at support.microsoft.com/en-us/windows/recovery-options-in-windows-31ce2444-7de3-818c-d626-e3b5a3024da5.