How to replace micro switch door latch

I have a door latch that is locked in the closed position and need to replace it. I could use a diagram or some instructions on how to remove and replace the switch.