.removeAll()
This method will remove every {type: "Human"}
object from your little JSON databse
db.find({type: "Human"})
.then((data) => {
data.removeAll()
})
You can even do something like this to delete the whole file!
db.find({})
.then((Data) => {
Data.removeAll()
})