Over time my couchbase server (version 4.1) accumulated lots of " _sync:local: " docs like this:
_sync:local:0985fe7…
{
“_rev”: “0-1”,
“lastSequence”: “111”
}
I 'd like to delete most of them except recent ones. I tried cbq cmd line using something like :
"DELETE FROM default synclocaldoc WHERE synclocaldoc.lastSequence < 9000 RETURNING synclocaldoc.lastSequence; "
but it didn’t work. How should I do that?
Thanks!