Forgot restriction code how do I unlock restrictions

I put a restriction code in and forgot what it was now I can't unlock restrictions how do I unlock or find the code
I put a restriction code in and forgot what it was now I can't unlock restrictions how do I unlock or find the code

Wipe the device, set up as new.

Original thread: https://forums.imore.com/threads/forgot-restriction-code-how-do-i-unlock-restrictions.331011/