Skip to content

WriteableCollection.delete()

David Fahlander edited this page Apr 9, 2014 · 29 revisions

Deletes all objects in the query.

Syntax

collection.delete()

Return Value

Promise

Remarks

This method is equivalent to the following:

collection.each(function (item, cursor) {
    cursor.delete();
});
Clone this wiki locally