Skip to content

Instantly share code, notes, and snippets.

@janmisek
Created April 28, 2015 11:06
Show Gist options
  • Save janmisek/0a730e44c43317609667 to your computer and use it in GitHub Desktop.
Save janmisek/0a730e44c43317609667 to your computer and use it in GitHub Desktop.
Clear indexed dbs in chrome
indexedDB.webkitGetDatabaseNames().onsuccess = function (dbs) {
dbs = dbs.target.result;
for (var i=0; i<dbs.length; i++) {
console.log('removing indexedDB', dbs[i]);
indexedDB.deleteDatabase(dbs[i]);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment