Couchbase server has a method to remove all the stored data in a bucket called doFlush. It is invoked through the following command:
POST /pools/default/buckets/[bucket-name]/controller/doFlush
When I try to invoke this function using the Sync Gateway API, it returns the following error:
{'error': 'not_found', 'reason': 'unknown URL'}
Sync Gateway does have a way to delete a bucket, but that operation only removes the bucket from the configuration file. It does not actually delete the records associated with it. Is there a way to flush Sync Gateway, or as a fallback delete the stored data?