You are currently browsing legacy 3.0 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.


void Delete(string key, Etag etag);
key string key of a document to be deleted
etag Etag current document etag, used for concurrency checks (null to skip check)


store.DatabaseCommands.Delete("employees/1", null);