deleteAll()
You can clear all database using with deleteAll()
Syntax
db.deleteAll(listener?)
Callback; Callback is a function and not required.
Example
db.deleteAll((err,data) => {
if(err) return console.log(err.message)
console.log("All data cleared")
console.log(data)
})
// {}
Last updated
Was this helpful?