remove all extra path points in one call.