Skip to content

MongoDB driver for Kotlin (coroutines)opensavvy.ktmongo.coroutines.operationsDeleteOperations

DeleteOperations

Interface grouping MongoDB operations relating to deleting documents.

Inheritors

Properties

context

abstract val context: 

Functions

deleteMany

abstract suspend fun deleteMany(options: <Document>.() -> Unit = {}, filter: <Document>.() -> Unit)

Deletes all documents that match filter.

deleteOne

abstract suspend fun deleteOne(options: <Document>.() -> Unit = {}, filter: <Document>.() -> Unit)

Deletes the first document found that matches filter.