Do you need to replace it again in the same place afterwards?
I use one of those (genuine) shark pry bars with a thin fish tail end-top quality tool designed exactly for removing architraves etc with minimal damage. I use a wide filling knife or wide bolster to stop the nails going back in again, also to spread the weight to prevent punching a hole through. Or, if you know the stud spacing and positions, use your pry bar against them. Sometimes I have to cut through the skirting with a fine saw to get it from behind a radiater, I do it at a angle so you get a decent scarf joint if you need to replce it (eg when you did laminate floor) Even with the best care you might still need to make good afterwards with filler and a bit of paint if theres a few bruises