8.7. DELETE /db/_design/design-doc/attachment

MethodDELETE /db/_design/design-doc/attachment
Request None
Response JSON of the deleted revision
Admin Privileges Requiredno
Query ArgumentsArgumentrev
 Description Current revision of the document for validation
 Optionalyes
 Typestring
HTTP HeadersHeaderIf-Match
 DescriptionCurrent revision of the document for validation
 Optionalyes
   
Return Codes
409 Supplied revision is incorrect or missing

Deletes the attachment attachment to the specified _design/design-doc. You must supply the rev argument with the current revision to delete the attachment.

For example to delete the attachment view.css from the design document recipes:

DELETE http://couchdb:5984/recipes/_design/recipes/view.css?rev=9-3db559f13a845c7751d407404cdeaa4a

The returned JSON contains the updated revision information for the parent document:

{
   "id" : "_design/recipes"
   "ok" : true,
   "rev" : "10-f3b15bb408961f8dcc3d86c7d3b54c4c",
}