Sammy Ageil

Lead by example

Deleting browser's IndexedDB files

July 03
by Sammy Ageil 3. July 2012 22:58

Today the team started working on an offline ready intranet application. The application requirement states "User should be able to track all activities and view his or her profile information excluding the password online and offline". fun eh? Well, our options were limited to Cookies, offline storage and IndexedDB.

  1. Cookies, are too restricting size wise
  2. Offline storage  is based on key, value pair (I know we can convert the object to a json string and store it but why we will have to prompt the user to increase offline storage size)
  3. IndexedDB is what I went with (it is part of the HTML5 standards even though its a draft)
 
Once we started writing code to set up the database schema, we noticed we couldn't delete the databases without going directory to the APPData folder and look for the browser's "Firefox and Chrome" specific directories. the idea of keeping two additional Windows Explorer windows open at all time was not a good solution.
 
The solution was to create a tool and share it with the team to do the clean up. here is the VS.Net solution IndexedDBFinderVSSolution.zip (3.00 mb)

 and the stand alone executable IndexedDBFinder.zip (5.26 kb)

Screen capture

IndexedDB Finder

 Hope it saves someone some time :-)

Stay tuned for the IndexedDB fun post coming soon.

Tags: , ,

HTML5 | MVC | Offline Applications