Yes, burngate is right, for a patient person, and if it works, this is the best way. Also don't be afraid to
add some solder when trying to melt the solder in the pad. It might be counter intuitive to add more solder, but it will help to melt the solder easier.
I myself am not that patient, so I will take a shortcut by cutting away the two pins that I have access to, so I have only one single pin to heat to get the darn thing off.
I use the same technique to remove, for example, a DIP IC from the board, first I cut off all the pins of the IC, then I remove the pins one by one.
Obviously if the IC cannot be discarded I need to melt all 14 or 16, or maybe even 20 pins, but for that special tools do exist.
As for the question where you learn all that, well you learn some basics at school, but the rest in over 30 years of doing it.
