Skip to main content

Commands: Delete Document

  • Use DeleteDocumentCommand to remove a document from the database.

  • In this page:

Example

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

Syntax

public DeleteDocumentCommand(string id, string changeVector)
ParametersTypeDescription
idstringID of a document to be deleted
changeVectorstringEntity Change Vector, used for concurrency checks (null to skip check)