just desoldering each pin and pulling it off
Pretty much this.
I suppose if you have a solder reflow oven, you can go about heating it up and then pulling the connector off, but I doubt that's a good idea, and I doubt that you have said device.
If you do have said device, kickass, I believe that alone makes you one of the better equipped people on MR.
Geb's a wild and crazy dude. I can tell, only the most adventurous people keep the hotsauce next to the deodorant.