If you forget your Restrictions passcode, you'll need to erase your child's device, then set it up as a new device to remove the Restrictions passcode. Restoring your child's device using a backup won't remove the Restrictions passcode.
Newsroom Update
Apple and Google deliver support for unwanted tracking alerts in iOS and Android. Learn more >
Apple and Google deliver support for unwanted tracking alerts in iOS and Android. Learn more >
If you forget your Restrictions passcode, you'll need to erase your child's device, then set it up as a new device to remove the Restrictions passcode. Restoring your child's device using a backup won't remove the Restrictions passcode.
Follow this: If you forgot the passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support and do not restore your iPhone from your backup.
Then follow this: What to do before you sell, give away, or trade in your iPhone, iPad, or iPod touch - Apple Support
I never created a restiction code in the first place I don’t have childs device?
iPhone asking for restriction code one never created?