deleteMany
abstract suspend fun deleteMany(options: ERROR CLASS: Symbol not found for DeleteManyOptions<Document>.() -> Unit = {}, filter: ERROR CLASS: Symbol not found for 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