To erase a Windows 10 PC before sending it back:
- Select Start > Settings > Update & Security > Recovery.
- Under Reset this PC, select Get started.
- Select Erase everything.
- Follow the on-screen instructions to erase the drive.
Important: this removes personal files, apps, and settings.