DataSource Entities

I want to get rid of all entities whether its viewer.entities or those added via dataSources. Problem is:


does not remove all entities (it does not remove ones added by GeoJSONDataSource. What is the appropriate call to remove all entities? I tried the following but it does not work either:


Is there a proper way to remove datasource entities?

If you want to get rid of all entities and all datasources, then this will do it: