ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: jfarkas on September 14, 2020, 05:49:10 AM

Title: Selective Bulk Delete of Metadata by Standards
Post by: jfarkas on September 14, 2020, 05:49:10 AM
Hi,

What is the most effective way delete metadata by standards?  For example, how woudl you approach a scenario if someone wants to keep all IPTC and PLUS fields but delete the rest?
Title: Re: Selective Bulk Delete of Metadata by Standards
Post by: StarGeek on September 14, 2020, 11:06:09 AM
You would basically clear everything then use the -TagsFromFile option (https://exiftool.org/exiftool_pod.html#tagsFromFile-SRCFILE-or-FMT) to re-add the stuff you want to keep.  One common example I see often is to remove everything but keep the Orientation
exiftool -All= -TagsFromFile @ -Orientation /path/to/files/

Title: Re: Selective Bulk Delete of Metadata by Standards
Post by: jfarkas on September 14, 2020, 02:26:44 PM
Thank you! Appreciate your prompt response.