ExifTool Forum

ExifTool => Newbies => Topic started by: Paul Barrett on December 03, 2016, 06:39:13 PM

Title: Deleting Exif GPS Tags
Post by: Paul Barrett on December 03, 2016, 06:39:13 PM
Hi guys

I have a bunch of Exif GPS tags I want to remove from some files.  I have been reading about the TAG command and how to use wildcard characters to delete similarly named tags but I could not quite follow it all.  Can you please help me with an example based on the tags that follow please?  I get the 'exiftool' prefix and the switches for child folders.  It's the core piece of the command I am struggling with.

GPSVersionID                 
GPSLatitudeRef                 
GPSLongitudeRef               
GPSTimeStamp                   
GPSStatus                       
GPSMeasureMode               
GPSDilutionOfPrecision       
GPSDestLatitudeRef   
GPSDateStamp

Regards

- Paul
Title: Re: Deleting Exif GPS Tags
Post by: StarGeek on December 03, 2016, 06:52:02 PM
Try
exiftool -gps*= FileOrDir

This will clear all tags that start with gps regardless of which metadata group they are in.
Title: Re: Deleting Exif GPS Tags
Post by: Paul Barrett on December 04, 2016, 02:10:50 AM
Thanks StarGeek, that looks very cool.

What if I ONLY want to delete the GPS data in the EXIF section though?  Can I prefix -gps* with the section title in some way?

Thanks

- Paul
Title: Re: Deleting Exif GPS Tags
Post by: Hayo Baan on December 04, 2016, 03:52:14 AM
Yes, you should be able to do this: -exif:gps* (on a Mac or on Linux you need to put quotes around the *)