Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C2FADF27 for ; Tue, 6 Nov 2012 08:13:06 +0000 (UTC) Received: (qmail 60331 invoked by uid 500); 6 Nov 2012 08:13:05 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 59940 invoked by uid 500); 6 Nov 2012 08:13:04 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 59918 invoked by uid 99); 6 Nov 2012 08:13:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2012 08:13:03 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of simon@cloudant.com designates 74.125.83.52 as permitted sender) Received: from [74.125.83.52] (HELO mail-ee0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2012 08:12:55 +0000 Received: by mail-ee0-f52.google.com with SMTP id b57so80761eek.11 for ; Tue, 06 Nov 2012 00:12:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:content-transfer-encoding :content-disposition:x-gm-message-state; bh=8mycO4U1qjaCV8cNvv1dl9hUEXlKy4/riYrTsMTSpyc=; b=OX/ZFW8YX+jeEW66wgJQl6B4wZutSmu15omqTTBfaNHjbUhQ3xca+Hk8tvvEqz044b q5cG5v+y2xK41ROvbTgD0DeFiEx5h/GeOI2tJt+ARKErSAGZd9uW17FiLxXP9uB9musn AiLlVJ1i/swFEabG7Z1TXmAJ2QxpwOvg6qsXIuVzX0lhgJ1z9Pyv81dOqID7kCrM1/DK RKI2T7kLK/pwEHUmfEeUKIHmT+OViaIni/42EC5i1w+fQzKB/h3cHl3y86akcSFRGOX4 2849t+OFlO8BskLehaBh9eXNFAq/5WtoVqnnDxvSf+gZXBeWZ6B7SfLKjyW33hMHaWQa gZ2g== Received: by 10.14.172.137 with SMTP id t9mr1112913eel.2.1352189554356; Tue, 06 Nov 2012 00:12:34 -0800 (PST) Received: from [10.154.243.193] (ip-80-113-15-100.ip.prioritytelecom.net. [80.113.15.100]) by mx.google.com with ESMTPS id t7sm54378077eel.14.2012.11.06.00.12.32 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Nov 2012 00:12:33 -0800 (PST) Date: Tue, 6 Nov 2012 09:12:30 +0100 From: Simon Metson To: user@couchdb.apache.org Message-ID: <9C67B89752384267B097F378F79B6EF8@cloudant.com> In-Reply-To: <015501cdbbd3$4b67a670$e236f350$@charter.net> References: <015501cdbbd3$4b67a670$e236f350$@charter.net> Subject: Re: Clearing a database. X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Gm-Message-State: ALoCoQkgU3szgBf9rC/qAQoXHYgXA1hEjzZRm70W6dumoPbrIw3O3d5T8agbD8Ak1ITx4SQ5TQ6z X-Virus-Checked: Checked by ClamAV on apache.org 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.