jvm MongoDB driver for Kotlin (synchronous) • opensavvy.ktmongo.sync • JvmMongoCollection • deleteOne deleteOne¶ open 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