Latch Assembly Replacement

I have a new latch assembly. I can’t get the old connectors (2) off. Any suggestions.