drop

abstract suspend fun drop(options: DropOptions<Document>.() -> Unit = {})(source)

Removes an entire collection from the database.

All documents within the collection are deleted.

Indexes attached to this collection are also deleted.

Example

collection.drop()

External resources