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 <[EMAIL PROTECTED]> 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 >
