Loading TOC...

xdmp.nodeDelete

xdmp.nodeDelete(
   $old as Node
) as null

Summary

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

Parameters
$old The node to be deleted.

Example

//  assume a document created with:
//    declareUpdate();
//    xdmp.documentInsert("/example.json",
//    {"a":"aa","b":"bb"});
//
declareUpdate();
for (var x of fn.doc("/example.json") )
xdmp.nodeDelete(x.root.b);
=>
 /example.json now looks like this:
 {"a":"aa"}

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy