ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: frereroy on January 19, 2014, 03:24:53 AM

Title: Removing XMP lightroom data
Post by: frereroy on January 19, 2014, 03:24:53 AM
I am trying to delete the XMP Lightroom HierarchicalSubject tag which contains stale keywords which I do not want in the IPTC.

I am using  exiftool -xmp:all= to delete ALL the XMP data but cannot get the syntax right to just get at the Lightroom HierarchicalSubject stuff.

Please can anyone help?

Many thanks.

EDIT: I have found the "lr" which seems to do the job. Can anyone validate that the following command is correct - its seemls to work ok.

exiftool -overwrite_original -xmp-lr:all= /Users/xxx/Desktop/Dom -ext jpg -r

I received the following error on a couple of files - I do not really understand what it means...

Warning: [minor] Ignored empty rdf:Seq list for dc:creator

Title: Re: Removing XMP lightroom data
Post by: Phil Harvey on January 19, 2014, 07:44:46 AM
This is correct.  -xmp-lr:all= will remove all tags in the "lr" namespace (https://exiftool.org/TagNames/XMP.html#Lightroom).  Alternatively, since you seem to want to delete only one tag, -hierarchicalsubject= would also have worked.

The warning is nothing to worry about, and just indicates an XMP list that is empty, which really shouldn't happen, but some software may do this.

- Phil
Title: Re: Removing XMP lightroom data
Post by: frereroy on January 20, 2014, 04:09:30 AM
Many thanks - support much appreciated.