I notice there’s no explicit bulk delete endpoint in the CBL rest API. Is it possible to use POST / _bulk_docs
to achieve the same thing?
Can you try creating a new revision in bulk docs with the property _deleted: true
. It should then delete it. That’s not mentioned in the endpoint description so I created a new issue https://github.com/couchbaselabs/couchbase-mobile-portal/issues/474
James
Actually it’s mentioned in this paragraph if that’s what you’re referring to http://developer.couchbase.com/documentation/mobile/1.3/develop/references/couchbase-lite/rest-api/index.html#operation---db--_bulk_docs-post
James
Perfect, thank you. Is there also a bulk_purge? Or do you need to call compact?
Cool! I don’t think there’s a bulk purge operation so calling /{db}/compact would be the way to do it.
James