In this wikiHow, you'll learn how to reset your Restrictions passcode by completely erasing your iPhone with a Factory Reset, or by using iCloud or Recovery Mode. Another option is to look for third-party software that can retrieve your passcode without erasing your iPhone.
How to Remove Restrictions Passcode on iPhone
If you forget your Restrictions passcode and need to reset it, there’s only one sure solution: erase and reset your iPhone. There are three ways to erase your phone to reset your Restrictions passcode: with your iPhone, iCloud, or Recovery Mode.
You can completely erase your iPhone, including the Restrictions passcode, by resetting the phone to its factory settings. Do this on the device by following these steps:
Tap the Settings app on your iPhone to open it.