You are currently browsing legacy 3.5 version of documentation. Click here to switch to the newest 5.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Attachments: Delete

DeleteAttachment is used to remove an attachment from a database.


public void deleteAttachment(String key, Etag etag);
key String key of an attachment to delete
etag Etag current attachment etag, used for concurrency checks (null to skip check)


store.getDatabaseCommands().deleteAttachment("albums/holidays/sea.jpg", null);