Back up any files you want to keep
Sign out of accounts and remove external devices
Plug in the laptop or ensure the battery is charged
Open Settings
Go to System
Select Recovery
Under Reset this PC, select Reset PC
Choose Remove everything
Choose Cloud download or Local reinstall
Select Change settings if you want to fully clean the drive
Confirm the reset options
Select Next
Select Reset
Wait for the wipe and reset process to finish
Follow the on-screen setup or power off if you are selling or giving away the laptop
