Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 18418 invoked from network); 16 Jul 2009 23:26:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jul 2009 23:26:11 -0000 Received: (qmail 85038 invoked by uid 500); 16 Jul 2009 23:27:15 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 84967 invoked by uid 500); 16 Jul 2009 23:27:15 -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 84833 invoked by uid 99); 16 Jul 2009 23:27:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2009 23:27:14 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dantheman@gmail.com designates 209.85.218.225 as permitted sender) Received: from [209.85.218.225] (HELO mail-bw0-f225.google.com) (209.85.218.225) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2009 23:27:05 +0000 Received: by bwz25 with SMTP id 25so500564bwz.11 for ; Thu, 16 Jul 2009 16:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=vD74/tAdOBIy0FKqY4RLWiTLUnP5Dx7RprOZUnNlHnQ=; b=eLk+nBDKxiwwH8tta+8S7i3wKTqPK5BICio1kxoCLXAtcvhOqvQ+RblLi8F/AxvYZf eVJ8w3HG0VRIS21VSjuo4T+gtCcGYdVcpefQRwAxtD7n7B/fajo9YErB7oFDLM3GLiN3 GKDIkiv9vRZFgNk4GwAki1fCfNFLKpOgpldS0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=VpFi/DL9Hj0nggaHP/Rc7mOWAdPSgwXtoF0nX6uLbMcWm4AQacow+ZCgNiNaeMFwst szdfqnjXaw4I+Xk+h4z33/Okb6dSKIP/nwv9b3diia04fne3y9IAx5Es9EYrSoQP/WwX EChCAuU8Cgw4ySmB821XZh/YrWCWIpXKkq3Js= MIME-Version: 1.0 Sender: dantheman@gmail.com Received: by 10.223.116.203 with SMTP id n11mr70807faq.13.1247786805135; Thu, 16 Jul 2009 16:26:45 -0700 (PDT) In-Reply-To: <56B1CF18-683F-4637-A3BC-932ADE038A03@gmail.com> References: <56B1CF18-683F-4637-A3BC-932ADE038A03@gmail.com> Date: Thu, 16 Jul 2009 19:26:45 -0400 X-Google-Sender-Auth: d3a6eda76119b082 Message-ID: <7a236b8b0907161626q4f4b4bdcq9b033b9a1cb4b728@mail.gmail.com> Subject: Re: delete key value pair? From: Daniel Gagne To: user@couchdb.apache.org Cc: couchdb-user@incubator.apache.org Content-Type: multipart/alternative; boundary=001636c5a504468b2a046edb01a6 X-Virus-Checked: Checked by ClamAV on apache.org --001636c5a504468b2a046edb01a6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit All you need to do is GET the document, make the change and the PUT it back. Deleting a key value pair in a document is the same thing as editing the document. This wiki page describes the document api: http://wiki.apache.org/couchdb/HTTP_Document_API Hope that helps, danny On Thu, Jul 16, 2009 at 7:16 PM, Tommy Chheng wrote: > How can i delete just a key-value pair but not the whole document? > > Ex: { "first_name": "blah", "last_name": "last"} , i want to delete the kv > pair "first_name": "blah" but not the whole document. > > > Thanks, > Tommy > --001636c5a504468b2a046edb01a6--