Created
April 28, 2015 11:06
-
-
Save janmisek/0a730e44c43317609667 to your computer and use it in GitHub Desktop.
Clear indexed dbs in chrome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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