see on GitHub

Operations: Attachments: How to Delete an Attachment

This operation is used to delete an attachment from a document.

Syntax

DeleteAttachmentOperation(String documentId, String name)

DeleteAttachmentOperation(String documentId, String name, String changeVector)

Parameters
documentId String ID of a document containing an attachment
name String Name of an attachment
changeVector String Entity changeVector, used for concurrency checks (null to skip check)

Example

store.operations().send(
    new DeleteAttachmentOperation("orders/1-A", "invoice.pdf"));