+1 this is how I do it. Mark, use "doc_ids" query param when setting up the replication (http://couchdb.readthedocs.org/en/latest/api/misc.html?highlight=doc_ids#post-replicate)
On Mar 25, 2013, at 2:52 PM, Matthieu Rakotojaona <[email protected]> wrote: > On Mon, Mar 25, 2013 at 10:35 PM, Mark Hahn <[email protected]> wrote: >> I have a database with a zillion docs that I need to empty. I just want >> the design docs left behind. I googled and saw some techniques that >> require writing code. >> >> Could I just GET the docs with curl and then PUT them? >> >> Any other way to do it? > > 1. Named replication of the design docs to a "db-tmp" > 2. Delete the "db" file (I assume you have access to the underlying files) > 3. Replicate the other way around > > > -- > Matthieu RAKOTOJAONA
