How to drop the scope using REST API

Attempting to delete range using REST API
curl -X DELETE -v -u Administrator:password http://localhost:8091/pools/default/buckets/test/collections/test
When used, ‘HTTP/1.1 405 Method Not Allowed’ will occur

http://localhost:8091/tools/default/buckets/test
Data will be printed when accessed through the URL

http://localhost:8091/http/default/test/test/collections/test
However, when accessing the URL, it cannot be found.The message ’ is printed.

Is the method of dropping via REST API wrong?

Dropping a Scope | Couchbase Docs

Looks like you were referencing an older version, when scopes and collections were still in “developer preview” and the API has changed slightly since then: Dropping a Scope | Couchbase Docs

Can you try:
curl -X DELETE -v -u Administrator:password http://localhost:8091/pools/default/buckets/test/scopes/test

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.