You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.1 version.
Attachments: Delete
DeleteAttachment is used to remove an attachment from a database.
Syntax
@Deprecated
public void deleteAttachment(String key, Etag etag);
Parameters | ||
---|---|---|
key | String | key of an attachment to delete |
etag | Etag | current attachment etag, used for concurrency checks (null to skip check) |
Example
store.getDatabaseCommands().deleteAttachment("albums/holidays/sea.jpg", null);