You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.1 version.
Commands: Documents: Delete
Delete is used to remove a document from a database.
Syntax
public void delete(String key, Etag etag);
Parameters | ||
---|---|---|
key | String | key of a document to be deleted |
etag | Etag | current document etag, used for concurrency checks (null to skip check) |
Example
store.getDatabaseCommands().delete("employees/1", null);