That is going up from the bottom up to get at the lights, there isn't much room to get at the sockets, they only turn about a 1/2 turn.
The socket sits with the wires pointing down,with your thumb you can pull back the clip on the wires, then the wires pull down.
Then you grasp the socket and twist, (don't quote me but) I think you twist Counter Clockwise then pull the socket back.
Putting mine in, I put the socket in the fog light, then pushed the wires home.
I couldn't get the wires and socket in place all in one piece, I had to do it like I explained