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