If you are looking to just delete everything and setting your iPhone to factory settings then you can do so by opening Settings ➔ General ➔ Reset ➔ Erase all Content & Settings. You will lose all data on your iPhone and the iPhone will be set to new.
If you are looking to just delete everything and setting your iPhone to factory settings then you can do so by opening Settings ➔ General ➔ Reset ➔ Erase all Content & Settings. You will lose all data on your iPhone and the iPhone will be set to new.