Function MongoCollection.deleteAll
Deletes all documents in the collection. The returned result identifies how many documents have been deleted.
DeleteResult deleteAll
(
DeleteOptions options = DeleteOptions(Nullable(DontCallDestructorT(Collation(null, Nullable(, true), Nullable(, true), Nullable(DontCallDestructorT(null), true), Nullable(, true), Nullable(DontCallDestructorT("non-ignorable"), true), Nullable(DontCallDestructorT("punct"), true), Nullable(, true), Nullable(, true))), true), Nullable(DontCallDestructorT(Bson(Type .undefined, null)), true), Nullable(DontCallDestructorT(WriteConcern(Nullable(, true), Nullable(DontCallDestructorT(Bson(Type .undefined, null)), true), Nullable(, true))), true), Nullable(DontCallDestructorT(null), true), Nullable(DontCallDestructorT(Bson(Type .undefined, null)), true))
) @safe;
Same as calling deleteMany
with Bson
as filter.
Standards
https://www.mongodb.com/docs/manual/reference/command/delete/