Created
September 6, 2023 08:50
-
-
Save virtualstaticvoid/a4299d71394dbfa4818739ac2b3d03e8 to your computer and use it in GitHub Desktop.
Clear Browser's IndexedDB
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
window.indexedDB.databases().then((r) => { | |
for (var i = 0; i < r.length; i++) window.indexedDB.deleteDatabase(r[i].name); | |
}).then(() => { | |
alert('Browser IndexedDB cleared.'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment