Delete GeometryInstance

@zyy1987 Thanks for sharing your code! The geometryInstances property of Primitive is read-only, so you cannot hide a single instance once the Primitive is created. Just in case, here’s an example Sandcastle showing how to remove an entire Primitive that contains instances.

It’s not a perfect solution, but you can hide a single instance without deleting it - see this thread: How to hide a single geometry instance?.