Method RemoveAll
RemoveAll()
Removes all documents from this collection (see also Drop()).
public virtual WriteConcernResult RemoveAll()
Returns
- WriteConcernResult
A WriteConcernResult (or null if WriteConcern is disabled).
RemoveAll(WriteConcern)
Removes all documents from this collection (see also Drop()).
public virtual WriteConcernResult RemoveAll(WriteConcern writeConcern)
Parameters
writeConcern
WriteConcernThe write concern to use for this Insert.
Returns
- WriteConcernResult
A WriteConcernResult (or null if WriteConcern is disabled).