Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Delete all local indexedDB
window.indexedDB.webkitGetDatabaseNames().onsuccess = function(sender,args){
var r = sender.target.result;
for(var i in r)
{
indexedDB.deleteDatabase(r[i]);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment