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