db.removeAttachment(docId, attachmentId, rev, [callback])
Delete an attachment from a doc. You must supply the rev of the existing doc.
rev
var rev = '1-068E73F5B44FEC987B51354DFC772891'; db.removeAttachment('doc', 'att.txt', rev).then(function (result) { // handle result }).catch(function (err) { console.log(err); });
{ "ok": true, "rev": "2-1F983211AB87EFCCC980974DFC27382F" }