This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
|
// @flow
|
|
|
|
// A function to delete all IndexedDB databases
|
|
export async function deleteAllDatabases() {
|
|
const databases = await window.indexedDB.databases();
|
|
for (const database of databases) {
|
|
if (database.name) {
|
|
await window.indexedDB.deleteDatabase(database.name);
|
|
}
|
|
}
|
|
}
|