Use the Volume down button to navigate to Wipe data/factory reset and use the Power button to select it.
: A hard reset erases all internal storage, including photos, contacts, and messages.
: Once finished, select Reboot system now to restart the phone in its factory state. Code and Menu Methods