Loading TOC...

MarkLogic 9 Product Documentation
temporal:document-delete

temporal:document-delete(
   $temporal-collection as xs:string,
   $uri as xs:string
) as empty-sequence()

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.

Parameters
temporal-collection The collection that contains the temnporal document to be deleted.
uri The URI of the temporal document to be deleted.

Example


xquery version "1.0-ml";

import module namespace temporal = "http://marklogic.com/xdmp/temporal"
      at "/MarkLogic/temporal.xqy";

temporal:document-delete("temporalCollection", "doc.xml")

(: Deletes the "doc.xml" document from the temporalCollection. :)

Example


xquery version "1.0-ml";

import module namespace temporal = "http://marklogic.com/xdmp/temporal"
      at "/MarkLogic/temporal.xqy";

(: Deletes the "doc.xml" document from the temporalCollection if it exists. :)

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.