Imported from the Apple Support Forums via the Wayback Machine 🔗
If you forgot Screen Time Passcode...
Settings > General > Reset > Reset all Settings
What this effectively does is to reset some of your Settings to factory default. It’s not a complete removal of settings. It removes all of your preferences for Wi-Fi, Bluetooth, Do No Disturb, Notifications, General, Sounds, Brightness & Wallpaper and Privacy.