It takes a lot of fiddling around. Mine was stuck in the down position and I gained some wiggle room by removing the window trim-- you may not have to do this if your window is up. The only thing tricky about it was that you have to drill out a hole on the inside panel of the door so you can access the third bolt that holds the motor onto the cable assembly-- there's an indentation on the door panel where you have to drill the hole. Once you get all three of the motor-bolts off you can work the motor free by pushing it toward the outside of the door to separate from the cable mechanism-- you may have to twist it a little to get it free.
All this is much easier if you are lucky enough to have the window stuck in the up position. If the window is down, remove the trim and work carefully so as not to damage the window. It took me a while to get the motor out.
The real lesson I learned the hard way: be absolutely, 100% certain that the motor is the problem before going to the time and expense of replacing it. After doing all of this, my motor went down, but would not work in the "up" direction using either the driver or passenger door switch. After some testing with the multi-meter I figured out that the driver's master switch was not passing the negative connection through to the door motor in the up and neutral positions and it needed to be replaced. If I'd tested the electricals correctly in the first place, I would have avoided a lot of trouble.