Query all deleted Documents by Rest API


is there any known solution to query all deleted documents in cb lite by rest api? I want to purge all documents (including old revs) that got deleted by sync gateway.

Best Regards,

The best you can do, I think, is issue an all_docs query with ?include_deleted=true, then pick the deleted docs from the results.

perform delete request at serverip:8091/bucket_name. This will delete the bucket with docs.
Now perform put request on serverip:8091/bucket_name. and it will create fresh bucket with same name.

@sidh007 That has nothing to do with what the original poster asked.