forgot my iphone passcode :/

so idk why my mind went blank and i forgot my passcode. im currently inside my iphone right now but i just forgot and can’t access it. is there a way i can reset it by not deleting everything on my phone? .. i’m so dumb