Microsoft has created a tool to do this automatically.
You have the option to either keep your personal data or remove everything.
To get started first you better Download theRefresh Windows Tool.
Step 2:snag the Accept button to accept the terms of use.
A below screen will appear.
go for the appropriate option.
Step 3:Now punch the start button and go for the right option for you.
If you want to keep your personal files like my documents etc.
then choose the Keep personal files only.
Otherwise choose the Nothing.
It will download the latest Windows 10 image file and will install that automatically you nothing have to do.
It require internet connection to download the image file from the internet.
Image file size could be approx 3GB.
So it depends on your internet connection that how much time will take to finish the process.
Note:It will delete every app software installed on the computer, and the will not be recovered.
you’re gonna wanna reinstall them later on.
If you have no internet connection then you require a bootable disk to install a fresh Windows.
Go to this guide to know how tocreate a bootable diskfor Windows 10.