deleteMany
open suspend override fun deleteMany(options: DeleteManyOptions<Document>.() -> Unit, filter: FilterQuery<Document>.() -> Unit)(source)
Deletes all documents that match filter.
Example
class User(
val name: String,
val age: Int
)
collection.deleteMany {
User::age lt 18
}
Content copied to clipboard