app/utils/developer.js
// A function to delete all IndexedDB databases
A function to delete all IndexedDB databases
A function to delete all IndexedDB databases
async function deleteAllDatabases() {
  const databases = await window.indexedDB.databases();
  for (const database of databases) {
    if (database.name) {
      await window.indexedDB.deleteDatabase(database.name);
    }
  }
}
async function deleteAllDatabases ( ) { const databases = await window . indexedDB . databases ( ) ; for ( const database of databases ) { if ( database . name ) { await window . indexedDB . deleteDatabase ( database . name ) ; } } }
A function to delete all IndexedDB databases
A function to delete all IndexedDB databases