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

Attachments: Delete

DeleteAttachment is used to remove an attachment from a database.

Syntax

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

Request

Query parameter Required Description
key Yes key of an attachment to delete
Header Required Description
If-None-Match No current attachment etag, used for concurrency checks

Response

Status code Description
204 No content

Example

curl -X DELETE "http://localhost:8080/databases/sample/static/sea.jpg" 
< HTTP/1.1 204 No Content