incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Davis" <paul.joseph.da...@gmail.com>
Subject Re: Bulk Delete
Date Sat, 04 Oct 2008 20:40:01 GMT
You should be able to do that via:

1. Define view that emits id and rev's of bad docs: emit(doc._id, doc._rev)
2. Get list of bad docs from view
3. Use _bulk_docs with the _deleted=true member to delete the docs

See: http://wiki.apache.org/couchdb/HttpDocumentApi

Paul

On Sat, Oct 4, 2008 at 4:28 PM, Niket Patel <nexneo@me.com> wrote:
> Hello,
>
> Due to bug(infinite loop) in application code, I have end up with
> thousands(20K) of documents in just few hours.
> I want to delete all documents with particular attribute value.
> is that possible with single API call?
> or replication is possible with view(subset of documents) so I replicate
> good docs to other db and delete original and replicate again?
>
> Thanks
>

Mime
View raw message