drop Collection
suspend fun dropCollection(scopeName: String, collectionName: String, common: CommonOptions = CommonOptions.Default)
Content copied to clipboard
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
if the parent scope does not exist.
if there is no collection with this name in the parent scope.
suspend fun dropCollection(collection: CollectionSpec, common: CommonOptions = CommonOptions.Default)
Content copied to clipboard
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
if the parent scope does not exist.
if there is no collection with this name in the parent scope.