Package com.mongodb.client.model
Class DeleteManyModel<T>
java.lang.Object
com.mongodb.client.model.WriteModel<T>
com.mongodb.client.model.DeleteManyModel<T>
- Type Parameters:
T
- the type of document to update. In practice this doesn't actually apply to updates but is here for consistency with the other write models
A model describing the removal of all documents matching the query filter.
- Since:
- 3.0
- MongoDB documentation
- Remove
-
Constructor Summary
ConstructorDescriptionDeleteManyModel
(Bson filter) Construct a new instance.DeleteManyModel
(Bson filter, DeleteOptions options) Construct a new instance. -
Method Summary
-
Constructor Details
-
DeleteManyModel
Construct a new instance.- Parameters:
filter
- a document describing the query filter, which may not be null.
-
DeleteManyModel
Construct a new instance.- Parameters:
filter
- a document describing the query filter, which may not be null.options
- the options to apply- Since:
- 3.4
- Since server release
- 3.4
-
-
Method Details