The socket is from a wall mounted light fixture, the side of the socket says AI YACHT AT578 4/250. I've tried googling this product information but all I get is advertisements for yachts. Does anyone know how to find information about this product and also how to remove the wires from the socket. I need to repair the light fixture and in order to put it back on the wall I need to remove this light socket.
Why not just remove it at the terminal blocks visible in the background? You may have to pull them out of the wall.
These are single-use "backstab" connections. The wire can be removed either by firm pulling or jabbing a screwdriver in the slot release there, but then, the spring will be damaged and will no longer hold reliably. You would need to replace the socket at that point.