HT2110: iOS: Understanding 'Erase All Content and Settings'Learn about iOS: Understanding 'Erase All Content and Settings'
Currently Being ModeratedMay 2, 2012 10:37 PM (in response to kyliefromnt)
To set back the phone to factory settings, connect in recovery mode, explained here: iOS: Unable to update or restore and set it up as new device, explained in this article: How to back up your data and set up as a new device
If you have forgotten the code for the lock screen, you'll get the option to set it back by entering a new one.
The restrictions password can't be changed, you'll have to erase the phone by setting it up as new device, and you can't use the backup afterwards, the restriction passcode is part of the backup.