deleteMany

suspend fun MongoCollection<*>.deleteMany(filter: BsonDocument): Long

Delete multiple objects from the remote collection.

Return

the number of documents that have been deleted.

Parameters

filter

a filter to specify the documents to delete.

Throws

if the underlying App Service HTTP requests fails.