Power cable connectors like this one have a small tab on the side that locks them in place.
To separate the connector from its socket, squeeze the tab against the connector, and pull the connector straight up from the socket.
JST connectors are similar but don't have the locking tab. There are a few other similar types, with or without the tab, and having 2 or 3, sometimes up to half a dozen or more wires. These may be found connecting a microphone or speaker in a camera, or interconnecting the circuit boards in a radio.