Skip to main content

Function: dropAllDatabases()

dropAllDatabases(opts?): Promise<{ dropped: string[]; errors: unknown[]; }>

Deletes all IndexedDB data associated with Replicache, and the in-memory databases instances ran on after a storage failure (see onStorageFailure).

Returns an object with the names of the successfully dropped databases and any errors encountered while dropping. Rejects if the configured store cannot be opened.

Parameters​

opts?​

DropDatabaseOptions

Returns​

Promise<{ dropped: string[]; errors: unknown[]; }>