Unscrew it, screw new one back on. You should then switch on the ignition, foot flat to the floor and attempt to start the engine. It may take a bit of doing, but keep the foot on the floor as this puts the ECU into bleed mode.
It pays to fill the new filter with the diesel out of the old...