Is there any way that I can drop all data from a CouchDB database?
What I’m doing currently is dropping and re-creating the whole database
curl -X DELETE http://localhost:5984/foobar
curl -X PUT http://localhost:5984/foobar
but I’m not sure if this is the best way to do this.
There is no way to drop Data except deleting each doc (or updating a bunch of known doc-id’s with
_rev=xxx and "_deleted:true"in a_bulk)Deleting and recreating is ok.