Commands: Documents: Delete

Delete is used to remove a document from a database.

Syntax

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

Example

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