jvm MongoDB driver for Kotlin (coroutines) • opensavvy.ktmongo.coroutines • JvmMongoCollection • deleteOne deleteOne¶ open suspend override fun deleteOne(options: DeleteOneOptions<Document>.() -> Unit, filter: FilterQuery<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