InterviewSolution
Saved Bookmarks
| 1. |
How Can You Delete A Pouchdb Added Attachment? |
|
Answer» The removeAttachment() method is USED to delete an attachment from PouchDB document. To USE this method, you have to pass the document id, attachment id, and _rev VALUE. This method ALSO accepts an optional callback function. Syntax: db.removeAttachment ( docId, attachmentId, rev, [callback] ); The removeAttachment() method is used to delete an attachment from PouchDB document. To use this method, you have to pass the document id, attachment id, and _rev value. This method also accepts an optional callback function. Syntax: db.removeAttachment ( docId, attachmentId, rev, [callback] ); |
|