couchdb-user mailing list archives

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

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.

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.

View raw message