DataSource Entities

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

viewer.entities.removeAll();

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:

viewer.dataSources.entities.removeAll();

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:

viewer.entities.removeAll();

viewer.dataSources.removeAll();