One of the hardest things to happen is you forgetting the Restriction passcode. We’re talking about the passcode that you set for Settings → General →Restrictions.
Restrictions help you control what part of your iPhone/iPad is accessible. You can disable apps, control the installation /deletion of apps etc. through Restrictions. In order to use them, you should set a passcode. And if you happen to forget it, it seems impossible to reset the code without restoring your iPhone/iPad as a new device.