Can't sign out of account, stuck.

I was trying to find my old XBOX Live account to use since I have multiple. I tried to recover one of my accounts through the in-game one, and after finding out that it was the wrong one, now I can’t back out nor sign into the game because it’s stuck on the Microsoft account recovery screen. If I press cancel, it tells me to sign in again and I’m once again at the recovery screen. The button to sign out that’s normally at the bottom right of the screen is nowhere to be seen. Is there a way to delete cookies or whatever since I literally can’t play the game?

Found a solution for whoever has the same problem.

delete everything