You are currently browsing legacy 4.1 version of documentation. Click here to switch to the newest 5.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: Documents: Delete

Delete is used to remove a document from a database.


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


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