You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 4.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.

Syntax

curl \
	http://{serverName}/databases/{databaseName}/docs/{key} \
	-X DELETE

Request

Query parameter Required Description
key Yes key of a document to be deleted
Header Required Description
If-None-Match No current document etag, used for concurrency checks

Response

Status code Description
204 No content

Example I

Delete document products/9999.

curl -X DELETE "http://localhost:8080/databases/NorthWind/docs/products%2F9999" 
< HTTP/1.1 204 No Content