Click Start > Settings > Update & security > Recovery. On the Recovery screen, click Get started under Reset this PC, which offers you two choices – Keep my files or Remove everything. The latter is what you want if you're getting rid of your computer and want to factory reset it first.