Commands: Delete Document

  • Use DeleteDocumentCommand to remove a document from the database.

  • In this page:


Example

$command = new DeleteDocumentCommand("employees/1-A", null);
$session->advanced()->getRequestExecutor()->execute($command);

Syntax

DeleteDocumentCommand(?string $idOrCopy, ?string $changeVector = null);
Parameters Type Description
idOrCopy string ID of a document to be deleted
changeVector string (optional) Entity Change Vector, used for concurrency checks (None to skip check)