MongoCollection.deleteAll

DeleteResult deleteAll(DeleteOptions options = DeleteOptions.init) @safe

Deletes all documents in the collection. The returned result identifies how many documents have been deleted.

Same as calling deleteMany with Bson.emptyObject as filter.

Standards