To gkes,
The flanged pipe spools at the valve locations could be cut by torch or saw, and the spool pipe pieces then removed.
Keep the steel(?) spool flanges in place for pushing the HDPE pipe. The HDPE flanges will need to be pushed apart. Port-a-Power hydraulic jacks should be placed between the steel spool flanges to carefully push and compress the HDPE piping on each side of the gap. The HDPE pipe could be softened by heating to a warm temperature of approximately 140 to 180 deg F or hot water. You may need to heat and soften a short length of several feet behind each HDPE flange. When the hydraulic jacks are removed, the piping will tend to spring back, so push the HDPE piping a small amount beyond the length required for the valve and gaskets. Depending on the size of the pipe, a single hydraulic jack could do the push for sizes to possibly NPS-6, or multiple jacks could be required for large sizes of pipe.