Loading TOC...

xdmp.documentRemoveCollections

xdmp.documentRemoveCollections(
   $uri as String,
   $collections as String[]
) as null

Summary

Removes the named document from the given collections. For each collection that is protected, the user must have permissions to update that collection or have the any-collection privilege. For each unprotected collection, the user must have the unprotected-collections privilege.

Parameters
$uri The document URI.
$collections A set of collection URIs.

Example

declareUpdate();
var colls = [ "http://examples.com", "http://marklogic.com" ];
xdmp.documentRemoveCollections("/example.json", colls);

Comments

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