You are currently browsing legacy 4.0 version of documentation. Click here to switch to the newest 5.1 version.
Operations: Attachments: How to Delete an Attachment
This operation is used to delete an attachment from a document.
DeleteAttachmentOperation(String documentId, String name) DeleteAttachmentOperation(String documentId, String name, String changeVector)
|documentId||String||ID of a document containing an attachment|
|name||String||Name of an attachment|
|changeVector||String||Entity changeVector, used for concurrency checks (
store.operations().send( new DeleteAttachmentOperation("orders/1-A", "invoice.pdf"));