<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/temporal.documentDelete.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>temporal.documentDelete</api:function-name><api:suggest>temporal.documentdelete</api:suggest><api:suggest>temporal</api:suggest><api:suggest>documentdelete</api:suggest><api:function-link mode="xquery" fullname="temporal:document-delete">/apidoc/8.0/temporal:document-delete.xml</api:function-link><api:function mode="javascript" name="documentDelete" lib="temporal" category="Temporal" hidden="false" bucket="MarkLogic Built-In Functions" prefix="temporal" namespace="http://marklogic.com/xdmp/temporal" fullname="temporal.documentDelete"><api:summary>
  This function deletes the temporal document identified by the given URI.  
  Note that temporal documents are not actually deleted, but are rather 
  "logically deleted" and remain in the database with system end times set 
  to the time of the deletion.
  <p xmlns="http://www.w3.org/1999/xhtml">
   A TEMPORAL-DOCNOTFOUND exception is thrown if the document does not exist in
   the named collection.
  </p>
  </api:summary><api:params><api:param name="temporal-collection" type="xs:string"><api:param-description>
    The collection that contains the temnporal document to be deleted.
    </api:param-description><api:param-name>temporal-collection</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="uri" type="xs:string"><api:param-description>
    The URI of the temporal document to be deleted.
    </api:param-description><api:param-name>uri</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>null</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
declareUpdate();
var temporal = require("/MarkLogic/temporal.xqy");

temporal.documentDelete("temporalCollection", "doc.xml")

// Deletes the "doc.xml" document from the temporalCollection. 
</pre></api:example></api:function></api:function-page>