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