How to reset my iPhone restrictions pass code?

I just tried to get into my restrictions but it asked for a pass code and I forgot what it was… Is there any way I can reset the thing?

How are you even in the phone if you don't know the pass code lol? Wouldn't the screen lock once it sleeps. Unless you're doing all this without the screen going to sleep lol. Anyways as far as any phone and pass code goes there's usually no way to reset it unless you know the existing pass code otherwise that would completely defeat the purpose of a pass code.