The only way I have found so far is to "reset" the XMP object by assigning an empty one :
var emptyXMP = new XMPMeta();
app.activeDocument.activeLayer.xmpMetadata.rawData = emptyXMP.serialize();
The only way I have found so far is to "reset" the XMP object by assigning an empty one :
var emptyXMP = new XMPMeta();
app.activeDocument.activeLayer.xmpMetadata.rawData = emptyXMP.serialize();