Erase old iPhone - forgotten restrictions passcode and no WiFi I have an old iPhone 4 that has been sitting unused since I got my new phone - it has now sold and I have to clean it out so it's ready for the next person.

Here's the problem:


The wifi doesn't work and the phone's inactivated (so I can't get online).
It is asking for a restrictions passcode I don't ever remember setting.


I tried the default (0000) but no luck. What can I do to get this phone back to factory settings?
You can wipe your iPhone with iTunes: Apple's support page

Sometimes, it's also possible to recover the restrictions passcode, but that requires a lot of work. 2