De-Pin a headlight switch connector
See how the terminal openings are rectangular but they have that little notched area on one side? Push whatever tool you're going to use into that notched area and there is a little tang about halfway down the metal connector that will press down. Then pull the wire out.
You may have to push the wire forward first, push the tang down and then pull the wire out.