How do I do this properly? I want to take the wires out of the 3-pin connector on a case fan, but I also want to reconnect them later.

Any advice please, on how to extract the wires without breaking the connector or leads?