How to clear babylon indexedDB cache

Hey guys,

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

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!

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

found out that its possible by calling

window.indexedDB.deleteDatabase(‘babylonjs’);

i don’t think babylon need specific method for this

Thanks

2 Likes

Makes sense, thanks for sharing it.