How do I sand this down!?

How do sand this area down? Can't fit the sander in that area, also how legit of a sanding does this area need? Seeing it isn't going to really be seen, I'm still going to paint it but just kinda stumped on how to sand it down there...