couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Metson <simonmet...@googlemail.com>
Subject Re: how to delete if _id="" ?
Date Fri, 30 Jul 2010 13:54:20 GMT
Hi,
	Could you post {"_id": "", "_deleted": true} to the database?
Cheers
Simon

On 28 Jul 2010, at 09:47, Sebastian Cohnen wrote:

> I have no idea how you can remove this document, but maybe you could  
> open a JIRA ticket on this (since an empty document ID should not  
> happen).
>
> On 28.07.2010, at 09:47, Alux wrote:
>
>> Hello,
>>
>> today I got a slightly funny problem. Creating a document using an  
>> update
>> handler, I had the hope an _id would be crated if I dont provide one
>> (similar to POST do the DB). This hope was in vain, so now I have one
>> document with _id: "". (I did only once, because the second try  
>> gave an
>> update conflict of course :) Futon doesn't give the possibility to  
>> open it
>> (because a link text of length 0 doesnt make a link in the browsers I
>> tested: Firefox, Opera, Crome), and I just can't imagine to curl it  
>> (curl -X
>> DELETE http://locahost/sofa/ should rather delete the DB, right??).
>>
>> Any ideas?
>>
>> Thank you a lot & kind regards
>>
>> alux
>


Mime
View raw message