ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: dwlott on December 29, 2024, 11:40:39 AM

Title: Delete Originals
Post by: dwlott on December 29, 2024, 11:40:39 AM
Seasons Greetings! 
After updating four files, I'm trying to delete the originals.
Please help me get the -delete_original! command working.

This command:
-delete_original!
"E:\mySourceFolder\stocktest"

Brings this reply:
    1 image files found
    0 original files found

This is the dir:
12/29/2024  11:24 AM           548,476 stock01.jpg
12/02/2024  09:18 PM           548,481 stock01.jpg_original
12/29/2024  11:24 AM           879,083 stock02.jpg
12/02/2024  09:18 PM           879,088 stock02.jpg_original
12/29/2024  11:24 AM           267,930 stock03.jpg
12/02/2024  09:18 PM           267,935 stock03.jpg_original
12/29/2024  11:24 AM           177,155 stock04.jpg
12/02/2024  09:18 PM           177,160 stock04.jpg_original

Title: Re: Delete Originals
Post by: StarGeek on December 29, 2024, 11:44:06 AM
Assuming this is an args file due to the way you listed it
FAQ #29, "My options don't work in a -@ ARGFILE" (https://exiftool.org/faq.html#Q29).
QuoteAlso, arguments should not be quoted
Title: Re: Delete Originals
Post by: dwlott on December 31, 2024, 10:54:21 AM
Thank you StarGeek for pointing out the quotes problem.  This command works great for deleting the originals.

-delete_original!
E:\mySourceFolder\stocktest