In my code these are actually geomNodes, but they do not get deleted when this function is called…I then write the new geomData, but then both meshes are being rendered.
edit: I found the problem, I was forgetting to release the nodes from the list of all the geomnodes I created for testing purposes