Resetting reinstalls Windows 10, but lets you choose whether to keep your files or remove them, and then reinstalls Windows. You can reset your PC from Settings, the sign-in screen, or by using a recovery drive or installation media.
Go to Start > Settings > Update & security > Recovery, click Get started and select the appropriate option. Then follow the on-screen instructions to restore Windows 10 to a factory fresh state.