deleteAll()

You can clear all database using with deleteAll()

Syntax

db.deleteAll(callback?)
  • Callback; Callback is a function and not required.

Example

db.deleteAll((callback) => {
console.log("All data cleared")
console.log(callback)
// {}
})

Last updated