vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

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.emptyObject as filter.

Standards

https://www.mongodb.com/docs/manual/reference/command/delete/

Authors

Sönke Ludwig

Copyright

© 2012-2016 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.