If its a sealed system I.E a combi boiler you have. You could simply drop the pressure via a drain valve, Close the drain valve to seal the system again, Cut and cap the pipe and re-pressurise the system. The water will hold in a sealed system (a bit like holding a glass full of water upside...