# How to clear babylon indexedDB cache

**URL:** <https://forum.babylonjs.com/t/how-to-clear-babylon-indexeddb-cache/59362>\
**Category:** Questions\
**Tags:** indexeddb\
**Created:** [July 3, 2025, 9:18pm UTC](https://forum.babylonjs.com/t/how-to-clear-babylon-indexeddb-cache/59362 "2025-07-03T21:18:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TooCalm](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/toocalm/32/3301_2.png) [@TooCalm](https://forum.babylonjs.com/u/TooCalm)\
**Post date:** [July 3, 2025, 9:18pm UTC](https://forum.babylonjs.com/t/how-to-clear-babylon-indexeddb-cache/59362/1 "2025-07-03T21:18:58Z")

</div>

Hey guys,

during this topic we found that babylon offline support is not working correctly when multiple glb files is loaded

> [@Is babylon caching to indexedDB works as expected?](https://forum.babylonjs.com/t/is-babylon-caching-to-indexeddb-works-as-expected/26962):
>
> Hey Guys, I see in babylon docs that babylon saves to indexedDB only .babylon files and materials. But google chrome docs says any files can be stored to indexedDB. I assume this feature was developed when there were some restrictions or smth. Could you please double check if those restrictions is still exists. Why babylon can’t save .glb files to cache. Second thing here is that i can’t even force babylon to cache .babylon files. The only thing which babylon caches is materials with glb f…

for me it means i always need to use disableManifestCheck=true

for example i created new version of mesh and I need to force player to update this mesh in his DB how i can do that?  
is there any way to clear babylon indexedDB from code?  
i only found resetTextureCache() in engine class but it seems it’s doing something else

Thanks!

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [July 3, 2025, 10:17pm UTC](https://forum.babylonjs.com/t/how-to-clear-babylon-indexeddb-cache/59362/2 "2025-07-03T22:17:08Z")

</div>

We do not have a clear function atm, would you want to contribute one ?

---

<div class="post-metadata">

**Author:** ![TooCalm](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/toocalm/32/3301_2.png) [@TooCalm](https://forum.babylonjs.com/u/TooCalm)\
**Post date:** [July 4, 2025, 2:16pm UTC](https://forum.babylonjs.com/t/how-to-clear-babylon-indexeddb-cache/59362/3 "2025-07-04T14:16:57Z")

</div>

found out that its possible by calling

window.indexedDB.deleteDatabase(‘babylonjs’);

i don’t think babylon need specific method for this

Thanks

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [July 4, 2025, 2:22pm UTC](https://forum.babylonjs.com/t/how-to-clear-babylon-indexeddb-cache/59362/4 "2025-07-04T14:22:34Z")

</div>

Makes sense, thanks for sharing it.
