Added a remove function to remove geometries that were previously added.