Skip to content

MongoDB driver for Kotlin (synchronous)opensavvy.ktmongo.sync.operationsDeleteOperations

DeleteOperations

Interface grouping MongoDB operations relating to deleting documents.

Inheritors

Properties

context

abstract val context: 

Functions

deleteMany

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

Deletes all documents that match filter.

deleteOne

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

Deletes the first document found that matches filter.