How do you remove the oil level sensor from the wired connector 1993 Buick Regal custom 3800 auto?

This was my question and can I pull the connector straight without breaking it does it have a lock cannot see up close using mirrors and magifine glass. Need to do quick so I can replace my starter. Thanks