With the help of the recovery tool in Windows 10, you can reset your PC and wipe the drive at the same time. Go to Settings > Update & Security > Recovery, and click Get Started under Reset this PC. You are then asked if you want to keep your files or delete everything.
How do I wipe my computer without deleting operating system?
Click Windows menu and go to “Settings” > “Update & Security” > “Reset this PC” > “Get started” > “Remove everything” > “Remove files and clean the drive”, and then follow the wizard to finish the process.
How do I wipe everything but my operating system?
Press Windows Key + I, type recovery in the search bar, and select Reset this PC. Next, select Remove everything, then Remove files and clean the drive. The Windows 10 reset function can take a while to complete, but it will make sure there is no chance for anyone to recover data from your drive.