drop Collection
suspend fun dropCollection(scopeName: String, collectionName: String, common: CommonOptions = CommonOptions.Default)
Deletes a collection from a scope.
WARNING: All documents and indexes in the collection will be lost.
Parameters
scope Name
Name of the collection's parent scope.
collection Name
Name of the collection to drop.
Throws
Scope Not Found Exception
if the parent scope does not exist.
Collection Not Found Exception
if there is no collection with this name in the parent scope.
suspend fun dropCollection(collection: CollectionSpec, common: CommonOptions = CommonOptions.Default)
Deletes a collection from a scope. Equivalent to:
dropCollection(collection.scopeName, collection.name)
Content copied to clipboard
WARNING: All documents and indexes in the collection will be lost.
Parameters
collection
Specifies the collection to drop.
Throws
Scope Not Found Exception
if the parent scope does not exist.
Collection Not Found Exception
if there is no collection with this name in the parent scope.