Use model.component(<ctag>).mesh(<tag>).create(<ftag>,"Delete") to delete elements from the mesh.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection() to specify the geometric entity selection. Allowed selections are meshed geometric entities of any dimension and the entire geometry, which can be partially meshed.