Goo Gone or De-Solv-It work really well for removing that kind of stuff. (I degrease my entire bike during overhauls with De-Solv-It.) It shouldn’t hurt the insulation on the cords or wires, but it may leave a residue that can be wiped away with a paper towel after a few minutes.
I’ve also had really good luck with Simple Green. No residue… bit more work than with Goo Gone or De-Solv-It… signature Simple Green smell.
_________________________
“Hiking is just walking where it’s okay to pee. Sometimes old people hike by mistake.” — Demitri Martin