As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
function main() { if(!args.property) { return "Missing required request parameter: property"; } var nodes = search.luceneSearch("TYPE:\"{www.fmcStars.nk.com/model/webcontent/1.0}downloadable\""); var propertyName = args.property; var str = "Deleted Property '"+ propertyName+" from the following Nodes:<hr>\r\n"; for each (var node in nodes) { node.properties.delete(propertyName); node.save(); // This method uses NodeService.setProperties(), which should remove any properties from the Node that are not in the node.properties map. str += node.name+"<br>\r\n"; } return str; } main();
delete node.properties[propertyName];