actually PATHFINDER > TRIM should do exactly what you want.
might mess up your grads but thems the breaks.