Closed abizit closed 5 years ago
You need to close all connections before the database can be deleted.
Fair enough but there's nothing in the docs about how to close a database? Also this doesn't cause any errors.. just nothing happens.
Fair enough but there's nothing in the docs about how to close a database? Also this doesn't cause any errors.. just nothing happens.
I got it working like this..
const db = await openDB(name, version, { ... });
db.close();
await deleteDB(name);
I am using it on Angular 7 and i am not able to delete the DB. This is how i am trying to run it in Typescript.
I am not being able to make it work. When i use the vanilla way using indexedDB.deleteDatabase(name); it says blocked.