Bug In Friend Safari

So I went into the friend safari, visited my friend’s base, and upon returning I git stuck in a wall. I can’t move. What should I do? How do I delete a single save from the game files, if possible?

Use your tablet to get out of the area.

OR go on the memory chamber and lose a battle. (This way, you’ll be sent to the PokeCenter)

Alright, I fixed it. Thanks guys.