MarkLogic 12 EA 1 Product Documentation
xdmp:node-delete

xdmp:node-delete(
   $old as node()
) as empty-sequence()

Summary

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

Parameters
old The node to be deleted.

Example

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