jvm MongoDB driver for Kotlin (coroutines) • opensavvy.ktmongo.coroutines.operations • DeleteOperations • deleteOne deleteOne¶ abstract suspend fun deleteOne(options: <Document>.() -> Unit = {}, filter: <Document>.() -> Unit) Deletes the first document found that matches filter. Example¶ class User( val name: String, val age: Int ) collection.deleteOne { User::name eq "Bob" } External resources¶ Official documentation