HT1414: Use iTunes to restore your iOS device to factory settingsLearn about Use iTunes to restore your iOS device to factory settings
How to restore...
Go to Settings>General>Reset and tap Erase All Content and Settings. This will erase your device. Then you will go through the setup screens again as you did when your device was new, and when given the option, select Restore from iCloud Backup.