ibm bluemix - How to delete 1 of 2 attachements in Cloudant? -
do know how delete 1 of 2 attachements of cloudant document?
here's how doc looks
whilst have 2 attachments have 1 document stored in cloudant. delete attachment need update cloudant doc rather delete it.
you'll need write code in application remove attachment json send put request cloudant db including id and latest _rev value. (api reference)
alternatively store 2 documents in database; 1 each attachment. you'd need store user_id , other metadata in each. allow delete each document individually.
Comments
Post a Comment