MarkLogic Server 11.0 Product Documentation
temporal:node-delete

temporal:node-delete(
   $temporal-collection as xs:string,
   $old as node(),
   [$temporal-doc-uri as xs:string]
) as empty-sequence()

Summary

Deletes a node from the database. On-the-fly constructed nodes cannot be deleted.

Parameters
temporal-collection The URI for the protected temporal collection in which the document is to belong. This must have been previously created by the temporal:collection-create function. All versions of the temporal document will be associated with this temporal collection.
old The node to be deleted.
temporal-doc-uri The URI of the temporal document to be updated.

Usage Notes

The third argument "temporal-doc-uri" is not required for documents inserted with MarkLogic 9.0 version of temporal:document-insert or later.

Example

temporal:document-insert("tempcol","/example.xml",
    <a><b>bbb</b></a>);
temporal:node-delete("tempcol",doc("/example.xml")/a/b);
doc("/example.xml")
=>
 <a/>
Powered by MarkLogic Server | Terms of Use | Privacy Policy