Please use Reset This PC if you want to just reinstall Windows. There is no need for you to have your programs and files deleted.
This is a new feature in Windows 10 that allows you to not have to lose all your settings and files from a Windows 10 reinstall.
Reset this PC in Windows 10
To get started, go to Settings > Update & Security > Recovery. Then click the Get started button under the Reset this PC section.
Then you will have two options: Keep your files or remove everything
Choose to keep your files.
And let Windows 10 reinstall itself without disturbing your installed software and files and folders.