Commands: Delete Document

  • Use DeleteDocumentCommand to remove a document from the database.

  • In this page:


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


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