From the Home screen, tap Settings.
Scroll to General.
Tap General.
Scroll to Reset.
Tap Reset. Before you proceed, make sure to back up all photos, videos, and data you'd like to keep. When you factory reset iPhone, all your files will be deleted.
Tap Erase All Content And Settings.
Tap Erase iPhone.
Tap Erase iPhone again.
You've completed the steps!
