7-Oct-2019
I've been messing around with BrowserFS and IndexedDB storage recently and managed to create a whole heap of duplicate database. For some reason, Safari doesn't give you an option to delete a single IndexedDB from website storage, so I had to find another way of doing it.
Of course one quick way to do it is to go to Safari's
Preferences >
Privacy >
Manage Website Data..., find the website you want to delete IndexedDB storage for and delete. Unfortunately this will also remove any local storage and cookies, not always what you want when programming.
The second way of doing it is by bringing up the JavaScript console from the Develop menu and typing in
indexedDB.deleteDatabase('your database name');...
That will delete just the database you are after, a nice and clean way of doing it.
There is one more way to do it, and that is to open Finder, the click on the
Go >
Go to Folder... menu item and enter
"~/Library". From here you can look for
Safari >
Databases >
__IndexedDB and delete any databases you don't want.
-i
A quick disclaimer...
Although I put in a great effort into researching all the topics I cover, mistakes can happen.
Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.
All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle).
Use of any information contained in this blog post/article is subject to
this disclaimer.
Igor Kromin