dls.documentUnmanage( uri as String, deep as Boolean, remove-versions as Boolean ) as null
Removes the specified document from management. You must have update permissions on the document to unmanage the document.
dls-user
role is required to run
this function, or the privilege:http://marklogic.com/xdmp/privileges/dls-user
// Unmanages 'baz.xml', but maintains management of its referenced // documents. All versions but the latest version of this document // are deleted. const dls = require('/MarkLogic/dls'); declareUpdate(); dls.documentUnmanage('/foo/bar/baz.xml', false, true);
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.