It depends on the make and model, tbh. There's no "one size fits all" solution, unfortunately.
p.s. before anyone jumps in with arguments about legality, the OP is in the UK where removing a "network lock" does not require permission from the network.