Method Remove
Remove(IMongoQuery)
Removes documents from this collection that match a query.
public virtual WriteConcernResult Remove(IMongoQuery query)
Parameters
query
IMongoQueryThe query (usually a QueryDocument or constructed using the Query builder).
Returns
- WriteConcernResult
A WriteConcernResult (or null if WriteConcern is disabled).
Remove(IMongoQuery, WriteConcern)
Removes documents from this collection that match a query.
public virtual WriteConcernResult Remove(IMongoQuery query, WriteConcern writeConcern)
Parameters
query
IMongoQueryThe query (usually a QueryDocument or constructed using the Query builder).
writeConcern
WriteConcernThe write concern to use for this Insert.
Returns
- WriteConcernResult
A WriteConcernResult (or null if WriteConcern is disabled).
Remove(IMongoQuery, RemoveFlags)
Removes documents from this collection that match a query.
public virtual WriteConcernResult Remove(IMongoQuery query, RemoveFlags flags)
Parameters
query
IMongoQueryThe query (usually a QueryDocument or constructed using the Query builder).
flags
RemoveFlagsThe flags for this Remove (see RemoveFlags).
Returns
- WriteConcernResult
A WriteConcernResult (or null if WriteConcern is disabled).
Remove(IMongoQuery, RemoveFlags, WriteConcern)
Removes documents from this collection that match a query.
public virtual WriteConcernResult Remove(IMongoQuery query, RemoveFlags flags, WriteConcern writeConcern)
Parameters
query
IMongoQueryThe query (usually a QueryDocument or constructed using the Query builder).
flags
RemoveFlagsThe flags for this Remove (see RemoveFlags).
writeConcern
WriteConcernThe write concern to use for this Insert.
Returns
- WriteConcernResult
A WriteConcernResult (or null if WriteConcern is disabled).
Remove(RemoveArgs)
Removes documents from this collection that match a query.
public virtual WriteConcernResult Remove(RemoveArgs args)
Parameters
args
RemoveArgsThe arguments.
Returns
- WriteConcernResult
A WriteConcernResult (or null if WriteConcern is disabled).