- Couchbase Server 7.0
DROP SCOPEstatement enables you to delete a scope.
drop-scope ::= DROP SCOPE [ namespace ':' ] bucket '.' scope
(Optional) An identifier that refers to the namespace of the bucket which contains the scope you want to delete. Currently, only the
defaultnamespace is available. If the namespace name is omitted, the default namespace in the current session is used.
(Required) An identifier that refers to the bucket which contains the scope you want to delete.
(Required) An identifier that refers to the name of the scope that you want to delete.
If there is a hyphen (-) inside the bucket name or the scope name, you must wrap that part of the path in backticks (` `).
This statement deletes a scope called
events in the
DROP SCOPE `travel-sample`.events
An overview of scopes and collections is provided in Scopes and Collections.
Step-by-step procedures for management are provided in Manage Scopes and Collections.
Refer to Scopes and Collections API to manage scopes and collections with the REST API.
Refer to the reference page for the collection-manage command to manage scopes and collections with the CLI.