drop

abstract fun drop(options: <Error class: unknown class><Document>.() -> Unit = {})(source)

Removes an entire collection from the database.

Example

collection.drop()

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.

External resources