Loading TOC...

MarkLogic 12 EA 2 Product Documentation
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"])

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.