Loading TOC...

MarkLogic Server 11.0 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/>

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