[Feature] Add a job detecting missing assets and removing broken database entries #3816
Replies: 3 comments 3 replies
-
This is a very similar request to #1968 because the goal is the same. Introducing a deduplication function into Immich directly would mitigate the need to detect missing assets and remove broken database entries. |
Beta Was this translation helpful? Give feedback.
-
Sure, but a cleanup job allows to use existing tools as well. Having both would be best. Direct deletion on the disk can be easier for duplicates or similar photos, or any other use case already handled by dedicated tools. |
Beta Was this translation helpful? Give feedback.
-
This would be very useful feature. My workflow is manually moving files from Immich upload directory into another, organized directory which I then use as external library in Immich. When I do that, Immich shows duplicate images on the timeline and no way to remove the duplicate thumbnail/orphan database entry. Being able to run a job that removes all missing photos from Immich would be great. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The feature
I used a tool czkawka to detect and remove duplicate or very similar photos directly from the filesystem. Then i made a script to get the list of assets with path from the database, validate all the paths and listing all asset ids pointing to deleted paths, and sending the id list to DELETE asset api endpoint.
I worked as intended AFAIK, but it could be added as a maintenance command on the server.
Platform
Beta Was this translation helpful? Give feedback.
All reactions