Deleting orphan tags

One minor problem with tags has been bugging me for years now, even though it doesnt affect digikam working.

If I start digikam from the command line, i see the following error messages:

unknown: Unhandled container to remove : Digikam::DigikamApp

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Long-toed Plover” with pid 204

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Spur-winged Plover” with pid 204

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Black-winged Plover” with pid 204

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Crowned Plover” with pid 204

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “African Wattled Lapwing” with pid 210

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “White-backed Vulture” with pid 438

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Lappet-faced Vulture” with pid 438

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Ruppell’s Griffon Vulture” with pid 438

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Hooded Vulture” with pid 438

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “White-backed Vulture” with pid 1621

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Lappet-faced Vulture” with pid 1621

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Ruppell’s Griffon Vulture” with pid 1621

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Spur-winged Plover” with pid 1570

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Crowned Plover” with pid 1570

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Long-toed Plover” with pid 1570

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “African Wattled Lapwing” with pid 1548

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Black-winged Plover” with pid 1570

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Western Banded Snake Eagle” with pid 1563

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Martial Eagle” with pid 1563

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Tawny Eagle” with pid 1563

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Brown Snake Eagle” with pid 1563

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Long-crested Eagle” with pid 1563

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Black-chested Snake Eagle” with pid 1563

Digikam::AlbumManager::scanTAlbums: Failed to find parent tag for tag “Augur Buzzard” with pid 1643

The first line about unhandled containers is likely nothing special, but the other lines indicate that tags have been “orphaned” somehow - their parent tags are deleted, but the child remains.
Again it doesnt affect digikam working, and I must have successfully created new tags with these names. However, is there a way to delete these orphans, eg through sqlitebrowser?

If I look in digikam4.db in “Tags” or TagsTree" I can see a field called “pid” but nothing is obviously out of place.

Anyone have any thoughts or any forum where I could ask this question?

I am going to make a stab in the dark and say that you have some images that digiKam can “see” that are tagged with the orphan tags while the parent tag has been deleted.

Even if digiKam creates a new single level tag of the same name, the tag heirarchy remains in the file until you manually delete that tag from the file.

That being said, I have used just about all programs out there, free and paid for; and, although sometimes I may run against a snag in digiKam, no program nowhere handles keyword tags as good as digiKam.

First off - I agree with you about digiKam tagging - I havent seen anything even close and its the main reason I store my images in digiKam.

Second off, I think what must have happened is that I deleted a parent tag many versions ago when tagging was less mature. So the ghost tags are orphaned and not accessible by any digiKam menu.

No biggie I guess.

1 Like

Have you tried the database maintenance functions? It may not remove the “ghost tags” but might clean up the messages.

Yes I have been through most of the maintenance options, and none of them make any difference to the startup messages.