how the hell do you remove the crank shaft sensor ?

is it gear box of job as cars in m8s garage today do some bits to it and was going to get it changed but looks a nightmare ?