function deleteDatabase(
name,
idbFactory?,
onBlocked?): Promise<void>;Defined in: packages/indexeddb-db-collection/src/wrapper.ts:505
Deletes an entire IndexedDB database. A blocked request stays pending until native success or error.
Use with caution - this removes the database and all of its object stores and data.
string
The name of the database to delete
IDBFactory
Optional IDBFactory for testing/mocking
(event) => void
Optional diagnostic callback for native blocked events. The request stays pending.
Promise<void>
A promise that resolves when the database is deleted
await deleteDatabase('myApp')
console.log('Database deleted')