Determining and removing a specific type of a Cesium object

I’m trying to store our references to the cesium objects that I’m creating generically. At some point I need to delete these objects, but I’m running into an issue that I don’t know if an object is KmlDataSource or an Entity. I’ve tried all of the normal typeof, instanceof, and constructor methods of determining the type but I’m not able to tell the difference between the two objects(without checking for a property that I know might exist on one object vs the other). Is there something I’m missing?

BTW, is there any information on removing objects? Is there anything at the Scene level that will just remove anything created regardless of type?

Scott

instanceof is working and doing exactly what I wanted. I must have typed in something wrong earlier. :frowning:

Scott