incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Metson <si...@cloudant.com>
Subject Re: Clearing a database.
Date Tue, 06 Nov 2012 08:12:30 GMT
Hi, 
You can use _bulk_docs to delete multiple documents at once:

http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API#Modify_Multiple_Documents_With_a_Single_Request

If you can't delete the whole DB I'd write a script that consumes _all_docs?limit=X and deletes
all the documents in batches of size X. You can tune X to your setup.
HTH
Simon


On Tuesday, 6 November 2012 at 05:00, Kevin Burton wrote:

> I would like to clear all documents out of the database. What would be a
> command that would do that? I can remove an individual document but I am not
> sure how to remove all documents.




Mime
View raw message