resetDatabase

Delete existing database and re-initialize.

When the operation is complete or encounters an error, the given callback will be executed on the database thread; it is the responsibility of the platform bindings to re-execute a user-provided callback on the main thread.

Parameters

callback

the callback to be invoked when the database was reset or when the operation erred.