You are currently browsing legacy 5.0 version of documentation. Click here to switch to the newest 5.1 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Operations: Attachments: How to Delete an Attachment

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


public DeleteAttachmentOperation(string documentId, string name, string changeVector = null)
documentId string ID of a document containing an attachment
name name Name of an attachment
changeVector string Entity changeVector, used for concurrency checks (null to skip check)


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