drop Collection
suspend fun dropCollection(scopeName: String, collectionName: String, common: CommonOptions = CommonOptions.Default)
Content copied to clipboard
Deletes a collection from a scope. Equivalent to:
dropCollection(CollectionSpec(scopeName, collectionName))
Content copied to clipboard
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
com. couchbase. client. core. error. Scope Not Found Exception
if the parent scope does not exist.
com. couchbase. client. core. error. 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)
Content copied to clipboard
Deletes a collection from a scope.
WARNING: All documents and indexes in the collection will be lost.
Parameters
collection
Specifies the collection to drop.
Throws
com. couchbase. client. core. error. Scope Not Found Exception
if the parent scope does not exist.
com. couchbase. client. core. error. Collection Not Found Exception
if there is no collection with this name in the parent scope.