Language
C# Java
Article For
3.5

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