Hi All,
Here is the case we will have more than one attahment ( attachment names are different ) with each document, we are able to load multiple attachments for each document and retrieve them, but we are not able to delete specific attachment ( one among multiple attachments ) of document. Can you please let us know do we have any way to achieve this, your help would be highly appreciated, thanks for your time.
I have gone through below link, it talks about post and get ( with specific attachment name ) and not about delete ( we are looking for DELETE /{db}/{doc}/{attachment} )
Thanks atom_yang for your reply.
looks, as per the available thread, the issue was not solved, so I requested thread for update.
Here is more info with my issue:
DELETE http://xxxxxx:xxxx/attachments/101/sample.pdf?rev=22-6dfd29e7f2d0d9479958b4f441d6df8f
returns 405 method not allowed, can you please suggest me , your help would be highly appreciated and thanks for your time.
When you add a attachment to a doc, as you issue:
your doc: 101 has a attachment sample.pdf.
so when you check you 101 doc, you can get the following property:
"attachment_list": [
"sample.pdf"
],
then you can update 101 doc that remove attachment_list property or remove attachment from attachment_list.
then you can not access the attachment.
also I am not sure that the attachment is removed.
you can try.
Where do you get this information from? I am interested in the oridinal thread if possible. Since we are eagerly want to delete docs with attachments. Thanks!