Collection.delete()
Syntax
collection.delete()Return Value
Error Handling
failures
Array of Error objects for all errors that have occurred
Sample
db.orders
.where("state").anyOf("finished", "discarded")
.or("date").below("2014-02-01")
.delete()
.then(function (deleteCount) {
console.log( "Deleted " + deleteCount + " objects");
});