How to exfoliate?

Hey ladies I need some help, I haven’t shaved in probably months. My leg hair is the longest it’s ever been and I want to shave but shaving irritates my skin. I’ve seen some posts saying exfoliating helps with this. But how do I exfoliate? Also do I do it before or after shaving? Sorry I just don’t know and need help. TIA.