Ok; I think I got it.

It seems I'm able to read all documents using this:
http://developer.couchbase.com/documentation/mobile/1.1.0/develop/references/sync-gateway/rest-api/database/get-all-docs/index.html

And afterwards deleting every single document using the following request 
for each one:
http://developer.couchbase.com/documentation/mobile/1.1.0/develop/references/sync-gateway/rest-api/document/delete---db---doc-/index.html

Am Sonntag, 22. November 2015 20:35:01 UTC+1 schrieb 
[email protected]:
>
> Hi Jens
>
> Thank you very much for pointing me into the right direction. I'd like the 
> "delete-all-documents-of-given-channel-from-server" approach.
> Unfortunately I can't figure out how I'd exactly do this.
>
> I've found the Delete design documents 
> <http://docs.couchbase.com/admin/admin/REST/rest-ddocs-delete.html> API 
> description, but can't see how I'd pass the channel id as argument?
>
> Hoping you can give me a brief hint.
> Thank you very much!!
>
>
> Am Sonntag, 22. November 2015 19:49:44 UTC+1 schrieb Jens Alfke:
>>
>>
>> On Nov 22, 2015, at 2:31 AM, Brendan Duddridge <[email protected]> wrote:
>>
>> Well that definitely complicates things. Perhaps another way to reset 
>> back to a previous state would be to purge all the documents on the server 
>> for a specific channel?
>>
>>
>> Yeah, I’d recommend that too, although it does cause everything to get 
>> uploaded back to the server, which can take a while.
>>
>> (But there’s the problem that for some reason SG hasn’t implemented the 
>> _purge call. It’s pretty easy to do a purge using CB Server APIs though: 
>> just delete the docs.)
>>
>> —Jens
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/daa6a348-f3fb-4d44-811f-81a71f464d16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to