Skip to main content

Function: dropDatabase()

dropDatabase(dbName, opts?): Promise<void>

Drops the specified database, from memory as well as from the configured store (see onStorageFailure). Rejects if the configured store cannot be opened or dropped.

Parameters​

dbName​

string

The name of the database to drop.

opts?​

DropDatabaseOptions

Options for dropping the database.

Returns​

Promise<void>