How to clear indexedDB with Capacitor Storage and Angular?

Hi,

I am trying to clear the indexedDB before storing a new picture from camera but unable to do so yet. I am using Angular with Capacitorjs Storage. I see the docs in Capacitor show a get() and deleteFile() but how can I grab them all and delete all?

Thanks,

Ryan

Partial answer:
I found Storage.clear(). Still confused because on progressive web apps Storage falls back to localstorage and clear() does clear. What I do not yet understand is why IndexedDB still has entries and continues to record with every camera shot? Shouldn’t this get cleared as well?