Community articleDocument DELETE8.5.3 UP1
Added by IBM contributorIBM on June 17, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Deletes a document.

Defined in: Document resource

Input
Method URI Description
DELETE /{database}/api/data/documents/unid/{docunid} Deletes a document by UNID.
Name Type Optional Description
database
string No Path name of a database on the server relative to the data directory.
docunid
string No Universal ID of a document in the database.
Name Type Optional Description
If-Unmodified-Since
9.0
date Yes Date and time in RFC 1123 time format, for example, Tue, 23 Aug 2011 21:35:18 GMT, as previously returned in the Last-Modified response header of a GET for the same document. The document is deleted only if it is not modified since the specified date.
Output
Code Description
200
OK. Indicates that the request was handled successfully.
404
The specified document wasn't found.
412
The document has been modified since the date specified by the If-Unmodified-Since header. The data service won't return this status code unless the request includes If-Unmodified-Since.
Examples
This request deletes a document from the XPagesExt.nsf database.
DELETE /XPagesExt.nsf/api/data/documents/unid/C3F96907EFDD1B1E85257869006AF185