# AssetContainer.removeAllFromScene does not remove instances of InstancedMesh

**URL:** <https://forum.babylonjs.com/t/assetcontainer-removeallfromscene-does-not-remove-instances-of-instancedmesh/9976>\
**Category:** Bugs\
**Created:** [April 14, 2020, 3:31am UTC](https://forum.babylonjs.com/t/assetcontainer-removeallfromscene-does-not-remove-instances-of-instancedmesh/9976 "2020-04-14T03:31:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![edzis](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/edzis/32/3545_2.png) [@edzis](https://forum.babylonjs.com/u/edzis)\
**Post date:** [April 14, 2020, 3:31am UTC](https://forum.babylonjs.com/t/assetcontainer-removeallfromscene-does-not-remove-instances-of-instancedmesh/9976/1 "2020-04-14T03:31:41Z")

</div>

I am loading glTF files with instancing. When I `removeAllFromScene` the scene still contains all the InstancedMesh instances from the loaded model but `dispose` removes them for good.  
In my use-cases I realized that `setEnabled` and `dispose` are enough, but spent a while trying to figure out what is happening. Maybe this needs to be addressed somehow.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [April 14, 2020, 2:28pm UTC](https://forum.babylonjs.com/t/assetcontainer-removeallfromscene-does-not-remove-instances-of-instancedmesh/9976/2 "2020-04-14T14:28:54Z")

</div>

Do you mind reproducing in the PG?
