centerline trim

Hi,

i have centerline that is intersecting(eg:L or U shape pipe), i have to remove(delete) the portion of centerline which is not required or of no use.

Thanks