358 Views
A common question that gets asked in the Couchbase forums and on Stack Overflow is how to delete all records from a bucket that have a key that starts with some value. In other words, how to delete all records that share a particular compound key. The simple solution is to create a Couchbase view and execute a range query. You can execute range queries with all the Couchbase SDKs, but for this particular example we're going to see how to do it with Node.js.
0 comments