drop
abstract suspend fun drop(options: ERROR CLASS: Symbol not found for DropOptions<Document>.() -> Unit = {})(source)
Removes an entire collection from the database.
Example
collection.drop()Content copied to clipboard
Using with filtered collections
When using opensavvy.ktmongo.sync.MongoCollection.filter, all elements matching the filter are removed. Other documents are not impacted, and the collection is not deleted.