Use model.component(<ctag>).geom(<tag>).feature(<ftag>).selection("keepvtx") to select the vertex to keep. The default selection is empty.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).selection("removevtx") to select the vertex to remove. The default selection is empty.