You are currently browsing legacy 4.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.
public DeleteDocumentCommand(String id, String changeVector)
|id||String||ID of a document to be deleted|
|changeVector||String||Entity Change Vector, used for concurrency checks (
DeleteDocumentCommand command = new DeleteDocumentCommand("employees/1-A", null); session.advanced().getRequestExecutor().execute(command);