Dexie.delete() - zuki/Dexie.js GitHub Wiki
Syntax
db.delete();
Return Value
Description
Deletes the database and calls the then() method of the returned Promise when done. In case database does not exist (db.open() never called) this method will also succeed.
Sample
db.delete().then(function() {
console.log("Database successfully deleted");
}).catch(function (err) {
console.error("Could not delete database");
}).finally(function() {
// Do what should be done next...
});