You can use
Multi-Selection
to select or clear all piping parts connected
between start and end.
Click Play to watch the video: 
-
From the Selection section of the
Auxiliary Viewer toolbar, click
Multi-Selection
.
This video is based on the user interface in an earlier release, but the concepts described are still valid.
-
Select one piping part as start and select another piping part as end in
the Auxiliary Viewer.
Selects the selected parts and all connected piping parts between
start and end.
-
While pressing Ctrl, select the same part.
Clears all connected parts.
Result: