xdmp.documentRemoveMetadata

xdmp.documentRemoveMetadata(
   uri as String,
   metadata as String[]
) as null

Summary

Removes metadata with certain keys from a document.

Parameters
uri The document URI.
metadata Name of the metadata to be removed.

Example

declareUpdate();
xdmp.documentRemoveMetadata("/foo.json", ["blah"])
Powered by MarkLogic Server | Terms of Use | Privacy Policy