dls.documentRemoveProperties( uri as String, property-names as xs.QName[] ) as null
This function removes the specified properties from the named document.
Note that properties are not maintained in version history.
Parameters | |
---|---|
uri | The URI of the document. |
property-names | The properties to be removed. |
dls-user
role is required to run
this function, or the privilege:http://marklogic.com/xdmp/privileges/dls-user
// The <priority> and <status> properties are removed from the // 'baz.xml' document. const dls = require('/MarkLogic/dls'); declareUpdate(); dls.documentRemoveProperties( '/foo/bar/baz.xml', [fn.QName('http://marklogic.com/xdmp/property', 'priority'), fn.QName('http://marklogic.com/xdmp/property', 'status')]);