A tutorial from Windows Central demonstrates two ways to restore your computer to factory settings: a basic approach that keeps your files and a more involved approach that erases everything.
How to reset a Windows 10 PC to factory settings
You can reset your PC to the factory default settings to fix problems and improve performance, and in this guide, we’ll show you how on Windows 10.