How to disconnect these 2 wire harness plugs?

Both have a locking tab and in the photo it shows up best on connector “A”.

It is the red tab shown above the arrow that you show. Just push up on the red tab towards the direction of the wires.

Yosemite