How to reset an Iphone without a restrictions passcode?

Hi, I have an Iphone 4 and I want to reset the whole thing to factory settings so I can give it to someone.
But I have forgotten the restrictions passcode. So how could I reset the whole thing?

The only way to get rid of it, if you can't remember it, is to restore as a new phone and not from your iPhone backup. You will lose All data on your phone.

  • My iPhone restrictions passcode was locked for a very long time? It says "20 failed passcode attempts" and "Try again in 5.839,495 minutes" Help HOW DO I GET AROUND THIS *5,839,495 not 5.8 minutes also it won't let me erase all from the phone because it says I need to input the restrictions password, so I honestly don't know what to do
  • My iPhone 4s won't let me reset it without a restrictions passcode? It says I need to put in the restriction password to do it but I never made a restriction password I don't know what it's talking about… Is there a way to erase that password I have no idea what it is or how it's on there
  • I forgot my restrictions s passcode on my iPhone. Please I forgot my restrictions passcode on my iPhone 5 and now I can't acces my restrictions. I tried restoring it then backing it up but the code comes back! I called apple and they were no help. Does anyone have any solutions that aren't restore it and buying all of my apps and music all over again? Please help! P. S. I don't have a backup file where the code isn't there.
  • I forgot my restrictions passcode for my iPhone 5? I don't know of any other way to reset the restrictions passcode without resetting the phone as a new iPhone! I'm at a loss here…