delete junctions that are not used