A factory reset will erase all data from your device and is irreversible. This is good to do if you are going to trade in or sell your device. It will wipe all of your personal information from the device.
1.
From the Home screen, tap Settings.
2.
Scroll to and tap General.
3.
Scroll to and tap Transfer or Reset iPhone.
4.
Tap Erase All Content and Settings.
5.
Tap Continue.
If a device passcode has been set, you will need to enter it.