To perform a hard reset
Make sure device is off Hold the Home Button + Power Button and Volume Up Button at same time. Now select Factory reset option. Now your device will automatically reset itself and restore to factory version.
To do a soft reset
Open the settings icon. Press the privacy button. Select the factory restore option. Press the restore button. At last press the done option.