A Restrictions passcode prevents the Restrictions settings on your phone from being changed or disabled. You enter this when you go to the Restrictions section of the Settings app. It stops people who shouldn't be able to change the Restrictions settings (kids, for instance) from accessing the settings.
2 Ways to Change Restrictions Passcode on iPhone
There is no default restrictions setting. A restrictions passcode can only be created by the user. If you cannot remember it, the only alternative you have is to restore the device as new. You will not be able to use your backup, since it contains the passcode and will only put it back on the machine.
You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New. You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
Reset iPhone Without Restrictions Passcode with iTunes Connect your iPhone to your PC or Mac. Open iTunes, navigate the device and select it, Click Summary > Restore iPhone. This will restore the iPhone to factory settings. And the Restrictions will be turned off automatically.
Step 1 On your iPhone/iPad, open Settings > General > Reset > Erase All Content and Settings. Step 2 This will erase everything on your device, including the Restrictions passcode. After that, the iPhone will reboot.
Here are the steps:
How to Reset Restrictions Passcode on iPhone?
If you lose or forget your Restrictions passcode, you need to erase your device, then set it up as a new device to remove the Restrictions passcode. From the first link. If you lose or forget your Restrictions passcode, you need to erase your device, then set it up as a new device to remove the Restrictions passcode.
You can try to remember or get the passcode somehow. If not, please refer to this article on Apple's support website to reset the passcode. If you have an older version of iOS (12 and under), unfortunately, you do not have the option to reset your passcode. You need to restore your device to Factory Settings.
All that said, the default passcode is 1234. The only option is to wipe the device clean and restore it to factory settings. Hope you have a backup.
If you can't remember a restrictions passcode that you set on a previous version of iOS, or you forgot your Screen Time passcode, then you need to erase your device, then set it up as a new device to ➔ How to remove the passcode.