[Feature] immich upload --delete
should also delete duplicates that it decided to not upload
#19244
Closed
nobodyinperson
started this conversation in
Feature Request
Replies: 1 comment
-
Meh, duplicate of #18931 and #12181 but more context and motivation provided here 🤓 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have searched the existing feature requests, both open and closed, to make sure this is not a duplicate request.
The feature
The
--delete
option toimmich upload
is very useful, e.g. to ingest a folder full of possible duplicates that you want to get rid of, but want to make sure you didn't miss anything. Also in combination with--watch
it keeps an inbox-style directory clean.BUT:
--delete
only deletes files that were actually uploaded. That's fine if there was an error such as an invalid file type or the server having another problem, but if the file was an actual duplicate, it's inconvenient that the file is not deleted. Also becauseimmich upload
seems to always exit with code 0 (no error), no matter what failures might appear.A crude workaround is to parse
immich upload
's output, scan for error and failure lines and extract the files that didn't work and delete all other files manually, but that's pretty error-prone.It would be great if
--delete
meant "delete files that are on the server after the command is done".Platform
Beta Was this translation helpful? Give feedback.
All reactions