I went to 1st Call Renault breakers in Benfleet for a spare sensor and he removed one from a gearbox by removing a clip and pulling it out. However it turns out that there are two types:-
Smooth round body remove clip then pull out
Flanged body self securing - just pull out.
Went back to breakers for correct part and everything works.