What is this (yellow-ish) gunk stuff on my electrical connectors?

I have been working on the interior of my 91 honda accord. I was cleaning under the door panels and carpet and I have noticed that some of the electric connectors have this yellow sticky earwax type stuff inside the harness itself. I'm trying to clean it but it's hard to get it inside the tiny harness holes. What is this stuff? What causes it? Can i avoid it in the future? What's the best way to clean this gross stuff?

It's probably dielectric grease that was applied at the factory to keep the electrical contacts from corroding. Leave it alone.

I wouldn't bother It. It's minding It's business and doing It's job.