Specifications

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 292
removeProperties()
XMPUtils.removeProperties(xmpObj, schemaNS, propName, options)
xmpObj
The XMPMeta object.
schemaNS
Optional. The namespace URI string. See Schema namespace string constants
on page 262. Must be supplied if a property name is supplied.
propName
Optional. The property name string. Can be a general path expression.
options
Option flags that control the deletion operation. A logical OR of these bit-flag
constants:
X XMPConst.REMOVE_ALL_PROPERTIES — Remove internal and external
properties. By default, removes only external properties. Applies only to
top-level properties.
X XMPConst.REMOVE_INCLUDE_ALIASES — Remove aliases defined in the
namespace. If the property name is supplied, removes it regardless of this
option.
Default is 0.
Removes multiple properties from an XMPMeta object
.
X If both the namespace and property name are supplied, removes the property if it is external,
even if it is an alias. If it is internal, removes it if the option
XMPConst.REMOVE_ALL_PROPERTIES
is specified.
X If the namespace is supplied and the property name is not, removes all external properties in
the namespace, and optionally all internal properties. Removes aliases only if the option
XMPConst.REMOVE_INCLUDE_ALIASES is specified.
X If neither the namespace nor the property name are supplied, removes all external properties,
and optionally all internal properties. Aliases are handled implicitly, because the associated
actual is removed.
Returns
undefined.