https://bugs.kde.org/show_bug.cgi?id=426859
--- Comment #4 from caulier.gil...@gmail.com --- Hi Le, You cannot use this code in the plugin : + ItemInfo info = ItemInfo::fromUrl(url); + + DIO::del(info, true); ItemInfo and DIO can only used from digiKam as they depends of database. The plugin is also avaialble in Showfoto, and there is no database... The solution is to use the host interface for plugins: The abstract parent class: https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/dplugins/iface/dinfointerface.h The re-implementation for Showfoto using file metadata instead database : https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/dplugins/iface/dmetainfoiface.h The re-implementation for digiKam using the database : https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/database/utils/ifaces/dbinfoiface.h The interface instance is always available in all plugin and must be used to play with items. Of course there is no method in interface to move item to trash. New one must be implemented. In the digiKam version, DIO and ItemInfo must be used. In the Showfoto version, just delete the item like it do here : https://invent.kde.org/graphics/digikam/-/blob/master/core/showfoto/main/showfoto.cpp#L802 Gilles Caulier -- You are receiving this mail because: You are watching all bug changes.