MongoCollection.deleteAll

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.

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

Meta