Click or drag to resize
IMongoCollection<TDocument>.DeleteManyAsync Method
Deletes multiple documents.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.3.0
Syntax
Task<DeleteResult> DeleteManyAsync(
	FilterDefinition<TDocument> filter,
	CancellationToken cancellationToken = null
)

Parameters

filter
Type: MongoDB.Driver.FilterDefinition<TDocument>
The filter.
cancellationToken (Optional)
Type: System.Threading.CancellationToken
The cancellation token.

Return Value

Type: Task<DeleteResult>
The result of the delete operation.
See Also