Step 1. To delete everything on your iPhone, iPad or iPod, click the "Erase All Data" option.
Step 2. Click "Erase Now" and type the word "delete" to confirm deletion. And then click "Erase Now" to erase all data from your device.
When the erasing is finished, you will get the confirmation window.