Maybe you want to replace the beltline weatherstripping.
The trim is held in place by the beltline weatherstripping. On my front doors, I was able to remove the rubber bumper at the bottom of the door:
remove the nut holding the window track in place and push the track in slightly:
then lower the front window all the way, allowing access to the beltline weatherstripping screws:
I was able to loosen all the screws and remove the trim:
I'm glad that TK had good success with leaving his trim intact during painting, because that's my plan for the rear doors too. For the rear doors, I can't see how the trim could be removed without first removing the window.