ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: kido63 on September 27, 2023, 07:37:21 AM

Title: Delete some metadata
Post by: kido63 on September 27, 2023, 07:37:21 AM
Hello,

I would like to delete these metadata in some pics:
- GPS Date/Time
- File Access Date/Time           
- File Creation Date/Time       

Can your give me the right code ?

Thanks
Title: Re: Delete some metadata
Post by: StarGeek on September 28, 2023, 01:00:29 PM
Quote from: kido63 on September 27, 2023, 07:37:21 AMI would like to delete these metadata in some pics:
- GPS Date/Time

The GPS date time can be in multiple locations but this should get rid of most of them
exiftool "-GPS*Stamp=" -GPSDateTime= /path/to/files/

Quote- File Access Date/Time         
- File Creation Date/Time

Right Click file->Delete file (don't really do this)
You cannot remove these tags as they are part of the file system. Every file on the drive has these time stamps.

The FileAccessDate can be ignored, as it will be changed every time the file is even looked at.  Exiftool can't edit it anyway.

You can edit the FileCreateDate date (as well as the FileModifyDate) by setting it to any value you want
exiftool -FileCreateDate="1999:12:31 23:59:59" /path/to/files/

But for the most part, these can be ignored.  If you are worried about privacy and copying the file to another disk, you can change the time stamp as above.  But if you are uploading the file to a website, then you don't need to worry.  The file system timestamps are not uploaded when uploading a file and social media sites strip away all metadata anyways.
Title: Re: Delete some metadata
Post by: wywh on September 29, 2023, 04:42:38 AM
In iOS 15.5 or later GPSTimeStamp has been moved to Offset* tags. If you want to remove also it, use:

exiftool "-GPS*Stamp=" -GPSDateTime= "-Offset*=" a.jpg

- Matti