Commands: Delete Document

  • Use DeleteDocumentCommand to remove a document from the database.

  • In this page:


Example

command = DeleteDocumentCommand("employees/1-A", None)
session.advanced.request_executor.execute_command(command)

Syntax

class DeleteDocumentCommand(VoidRavenCommand):
    def __init__(self, key: str, change_vector: Optional[str] = None): ...
Parameters Type Description
key str ID of a document to be deleted
change_vector str (optional) Entity Change Vector, used for concurrency checks (None to skip check)