Deletes a point from the points collection by its index.
If the index is invalid, returns None.
planetcnc.points_delete(index)
#! /usr/bin/env python import planetcnc # Delete the third point in the collection result = planetcnc.points_delete(2) if result is not None: print("Point deleted. Remaining points:", result) else: print("Invalid index, no point deleted.")