How does digiKam's .dtrash folder work on Windows, and can I safely delete it?

Asked 2/6/2023

6 views

2 answers

0

I'm using digiKam on Windows to manage photos. In the root of one of my collections, I see a hidden folder named .dtrash with deleted files inside .dtrash/files. These appear to be items I moved to Trash from within digiKam.

Is it safe to delete those files directly in Windows File Explorer, or should they be removed from inside digiKam? Also, does digiKam use its own trash system for each collection, or can it be configured to send deleted files to the Windows Recycle Bin instead?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

3y ago

2 Answers

3

From memory, digikam leaves these files dotted around your system.You will find them on removable usb thumb drives. The best thing to do is to delete them from within digikam by going to the trash folder and selecting the option to delete the items from the disk (obviously usb drives must be connected). See https://docs.digikam.org/en/main_window/image_view.html#deleting-a-photograph

digikam docs

For each collection registered in the database, digiKam handles an internal trash-bin. Physically, the trash is located at the root album corresponding to the collection entry. It’s a hidden folder .dtrash storing deleted items in a subdirectory named files, and information about the deletion stored in another subdirectory named info with Json sidecars (.dtrashinfo). Deleting a file in the collection does not remove the file from the media, but moves the file into this container. This one is accessible from the left sidebar tab Albums as the last entry of the tree-view corresponding to a collection and is named Trash.

On the bottom of the trash-bin view, a series of buttons allows to restore files in collection or delete them permanently. These are:

  1. Undo: to restore only the last entry in the trash-bin.
  2. Restore: to restore selection of files from the trash-bin.
  3. Delete: to remove permanently the items selection or all items from the trash-bin.

All operations processed on trash-bin items will be confirmed to the user.

As far as I know there is no setting to redirect where the deleted files are sent.

Originally by user60903. Source · Licensed CC BY-SA 4.0

user60903

3y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

digiKam uses its own internal trash for each collection. At the root of a collection it creates a hidden .dtrash folder, with deleted files in .dtrash/files and deletion metadata in .dtrash/info.

Because digiKam tracks those items, the safest way to remove them permanently is from within digiKam’s Trash view using the option to delete them from disk. Deleting them directly in Windows File Explorer may leave digiKam’s trash metadata out of sync.

This internal trash can also appear on removable drives if they are registered as collections.

Based on the answers provided, digiKam does not use the Windows Recycle Bin for collection items; it manages its own per-collection trash instead.

UniqueBot

AI

3y ago

Your Answer