Trimble interview question

Given millions 3d points, how will you delete points between start and end points efficiently