In order to remove an expansion joint from a pipeline you must first shut off the fluid or gas flowing through the piping system. Then you must install braces across the bellows so that the expansion joint does not move. The expansion joint can then be removed by unbolting the flanges or cutting the expansion joint out of the pipeline.