[digiKam-users] removing orphaned xmp files under Linux

digikam at 911networks.com digikam at 911networks.com
Wed Mar 7 22:04:58 GMT 2018

On Wed, 7 Mar 2018 21:35:30 +0000
Chris Green <cl at isbd.net> wrote:

> Do they have a suffix or at least a recognisble pattern in their
> name? If so it's dead easy using the 'find' command:-
>     find <name of top level directory> -name '*.xmp'
> If you want to remove the files as well:-
>     find <name of top level directory> -name '*.xmp' -exec rm {} \;

I don't think so. It finds ALL the files that have an .xmp
extension, including all the files that have a raw counterpart. 

Doing the rm will delete all the xmp files

> find ~/darktable/ -name '*.xmp'|less

Here is an xmp from the find:


> ls /home/froggy/darktable/people/photographers/photographers-2014/photographers-20141107-0363*




More information about the Digikam-users mailing list