Here are the steps to follow:
- Press Win + I Keys to open Settings
- Select Update & security and then Recovery.
- Under Reset this PC, select Get started.
- Choose either Keep my files or Remove everything. If you like to remove everything, you might be given the choice of resetting all drives and partitions or resetting only the one on which Windows 10 is installed.