I learned how to remove most multi-pin sockets and switches after wrecking an expensive Crown Jewel board by soldering in the order switch 90 degrees off. I ended up pulling up a lot of traces trying to pull the switch one leg at a time. Too late for that board, but lead me to the tip to get stuff out. Wish I had learned on a cheaper project.
O skimmed the replies, so ignore this if it’s been said
I hold the board flat and level and put a pool of solder on the board covering all 8 pins, or component connections. Usually as the slider melts the component with just fall out. If the socket legs are bent giving you a mechanical connection, you might have to bend them back before the socket falls out.