The phone will restart, erase all data, and reboot to the initial setup screen (like a new phone).
Open Settings (the gear icon).
Tap Erase all data (factory reset) .