Language
Java
Article For
3.0 3.5 4.1 4.2 5.0 5.1 5.2

Commands: Documents: Delete

Delete is used to remove a document from a database.

Syntax

public DeleteDocumentCommand(string id, string changeVector)
Parameters
id string ID of a document to be deleted
changeVector string Entity Change Vector, used for concurrency checks (null to skip check)

Example

var command = new DeleteDocumentCommand("employees/1-A", null);
session.Advanced.RequestExecutor.Execute(command, session.Advanced.Context);