de-pin a headlight socket

Are you sure "you want to?" Anytime I've had to re-do headlight connectors, the terminals were the problem, and replace the complete connector