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);