MongoDB driver for Kotlin (synchronous) • opensavvy.ktmongo.sync.operations • CollectionOperations • drop
drop¶
Removes an entire collection from the database.
Example¶
Using with filtered collections¶
When using filtered collections
, all elements matching the filter are removed. Other documents are not impacted, and the collection is not deleted.