Delete existing custom XMP Data

Started by Harry Pottar, August 20, 2024, 10:19:02 AM

Previous topic - Next topic

Harry Pottar

Hello,

I searched for answers to my problem with no luck.

I want to delete a couple of custom XMP fields that already exist in a file.

When I try to run

-customfield
-XMP:customfield
-XMP-xyz:customfield

I get the same response:
Tag 'customfield' is not defined

So I'm testing to see if I can write to them first, and then once that works, I can work on removing them.

If I define the custom namespace on my system and test write, I can write it to it without a problem.
But it creates a new namespace with only the new field. The old namespace gets renamed
---- XMP-tmp0 ----
And the original field is still there with the old value.

Any pointers
Thank you in advance
Harry

StarGeek

Exiftool can't edit XMP data that doesn't have a definition. You can either remove the entire group it belongs to, or remove the XMP data and copy it back in with
exiftool -XMP:All= -TagsFromFile @ -XMP:All file.jpg
With this command, exiftool can't copy any tags that don't have a definition, so they will be dropped.

When you get something like XMP-tmp0 using a custom definition, that means something has been incorrectly defined. We would need to see the config file and the original raw XMP data, which can be extracted with
exiftool -b -XMP file.jpg >file.xmp
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype