How can a view be deleted using the Python client?


#1

How can a view be deleted using the Python client?


#2

Hello,
The easiest way since it is not implemented in the SDK will be to call the REST API directly.
This API is documented here:
http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-designdoc-api-deleting.html

Regards


#3

In the new API, you can use the design_delete() method.
See http://pythonhosted.org/couchbase/api/couchbase.html#couchbase.connection.Connection.design_delete