DELETE /{db}/{design-doc-id}/{attachment}

In this document

Request


Response


Example


The following example deletes the attachment named sample_attachment for the design document with the identifier _design/beer3.

Request

DELETE /beer-db/_design/beer3/sample_attachment?rev=2-ebafcd22590dcfdcfed5359286dd6a1b HTTP/1.1
Host: localhost:59840

Response

HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 93
Content-Type: application/json
Date: Wed, 23 Apr 2014 21:47:54 GMT
Etag: "3-a1d429584623d1445515146e41cb22f1"
Server: CouchbaseLite 1.495
{
   "id": "_design/beer3",
   "rev": "3-a1d429584623d1445515146e41cb22f1",
   "ok": true
}