Skip to content

Instantly share code, notes, and snippets.

@rmehner
Last active January 29, 2026 13:04
Show Gist options
  • Select an option

  • Save rmehner/b9a41d9f659c9b1c3340 to your computer and use it in GitHub Desktop.

Select an option

Save rmehner/b9a41d9f659c9b1c3340 to your computer and use it in GitHub Desktop.
Delete all indexedDB databases
// Credit to @steobrien from https://gist.github.com/rmehner/b9a41d9f659c9b1c3340#gistcomment-2940034
// for modern browsers, this works:
const dbs = await window.indexedDB.databases()
dbs.forEach(db => { window.indexedDB.deleteDatabase(db.name) })
// for older browsers, have a look at previous revisions of this gist.
@sommeeeer
Copy link

Nice thanks :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment