immich icon indicating copy to clipboard operation
immich copied to clipboard

[Feature] Mass remove already backed-up photos

Open spupuz opened this issue 2 years ago • 55 comments

Feature Details:

  • [ ] Google Photos style "Free-up space", will remove all photos from device that are already backed up (manual)
  • [ ] Automatic delete of local assets based on some settings, some ideas below:
    • [ ] X days have passed
    • [ ] Maximum storage space used by assets
    • [ ] Minimum free space left on device
    • [ ] https://support.google.com/files/answer/10862356?hl=en
    • [ ] https://cdn.nerdschalk.com/wp-content/uploads/2021/09/how-to-delete-backed-up-photos-and-videos-4-a.png?width=800

Screenshot of Android Implementation

Google Photos Free Up Space

Platform

Mobile App

Notes

From Google Photos, it looks like this is possible on both iOS and Android. On Android it's only possible in android versions lower than Android 12 if the app is your default photo viewer. In Android 12 and higher it's possible for any app to delete photos without confirmation by targeting android 12 and requesting the special media management permission. More details can be found here: https://developer.android.com/training/data-storage/shared/media#management-permission

spupuz avatar May 17 '22 12:05 spupuz

this would be nice. Potentially down-sample images? or set an age limit, where older images are removed from the device, and if you want to view them it grabs them from the server?

I dont know if i would want to just remove them immediately.

I would also want to be able to totally remove images from both phone and server.

palitu avatar May 26 '22 01:05 palitu

It would probably be useful to set a threshold on the age of photos. Like delete everything that's backed up and older than 2 Years for example.

Tschuuuls avatar Jun 23 '22 18:06 Tschuuuls

Maybe this warrants its own issue, but I'll put it here for now: It'd also be nice if the delete prompt allowed you to only delete files from the server, while keeping them on the local device.

bo0tzz avatar Jul 07 '22 15:07 bo0tzz

Actually, just like Google Photos I'd like to delete photos from the backup (server) as well. When background backup is implemented, all photos will be transferred, also the ones that you delete from your phone. (Who doesn't take multiple pictures only to save the best one?)

bertmelis avatar Jul 07 '22 17:07 bertmelis

Yea, would be good to have both all options available to you, could just say Delete From: Server, Local, Both as clickable options

zackpollard avatar Jul 07 '22 20:07 zackpollard

This feature would really be a game-changer for Immich. It is the one feature I've been missing from all Google Photos replacements!

r3nor avatar Sep 03 '22 11:09 r3nor

https://github.com/immich-app/immich/pull/774 is closed? Is this feature still under development?

mhqschen avatar Apr 19 '23 06:04 mhqschen

Any news about that?

spupuz avatar Apr 27 '23 22:04 spupuz

That PR was closed because it was inactive for months, so the feature is not currently under development.

bo0tzz avatar Apr 28 '23 07:04 bo0tzz

well :/ not good once people backup photos to a "cloud" or self-hosted cloud would probably regain the space on the device that was the original source

spupuz avatar Apr 28 '23 08:04 spupuz

This feature will be implemented eventually, however it is not a priority at the moment

alextran1502 avatar Apr 28 '23 12:04 alextran1502

I decided to give Immich a go on kubernetes with the helm chart and I gotta say this is really well done so great work 😃

(Facial recognition was the feature that pushed me to give it a try btw.)

This "Free up space" ability (as Google/Android calls it) is exactly the missing feature that is needed to eventually completely drop Google Photos IMHO.

Again great work I'm amazed and encouraged 🎉

acjohnson avatar May 26 '23 16:05 acjohnson

This is a feature I'd also love to see, I've just set up an immich server to determine whether it's a suitable, self hosted, Google photos replacement and so far this is the biggest missing feature I've come across.

Sniper435 avatar May 31 '23 06:05 Sniper435

I'm surprised this isn't already a feature. I'm blown away that it isn't a priority feature.

I can't speak for everyone, but this feature is the sole reason I spun up an instance of immich. To give my family an easy way to offload photos to my server and free up device space following.

PLEASE put this in the feature cycle to be worked on.

Otherwise, you guys have done a phenominal job on all fronts. Functionality is great, ui is smooth and the mobile apps at this stage of development is mind blowing.

Thank you!

nmoore1 avatar Jun 03 '23 19:06 nmoore1

@nmoore1 we are aware this is a needed feature and will work on it eventually. It is one of the last feature we will work on before the stable release. Because of the nature of destruction of the feature, we want to make sure the server is stable and you have a good way to rebuild your instance if needed during the development cycle.

I hope this answers why it is not a priority feature at the moment

alextran1502 avatar Jun 03 '23 19:06 alextran1502

@alextran1502 that's great to hear! I was worried it wouldn't be a thing at all, but that makes sense. Thank you.

Also, looks like deleting from the native photo app accomplishes this in a round about way. I set up a one way back up to make sure nothing goes sideways while still in the development phase.

nmoore1 avatar Jun 04 '23 02:06 nmoore1

@alextran1502 Thanks for your answer. Is there any tracking issue for this stable release or a planned release date?

Srylax avatar Jun 26 '23 14:06 Srylax

We don't have a planned release date 😁

alextran1502 avatar Jun 26 '23 15:06 alextran1502

https://github.com/immich-app/immich/discussions/4453 any chance?

ghost avatar Oct 13 '23 03:10 ghost

@nick008a you opened a duplicate of this FR. Please close yours.

auanasgheps avatar Oct 13 '23 08:10 auanasgheps

@nick008a you opened a duplicate of this FR. Please close yours.

I don't think it's a duplicate. Sure, both are used to delete local copies, but @nick008a FR only deletes a specific copy. The argument to have the server stable isn't as strong because it's not as destructive. To block @nick008a feature because of a non-stable server is just an annoyance because you can already delete photo via the native photo app.

Srylax avatar Oct 13 '23 09:10 Srylax

Sorry for the misunderstanding.

auanasgheps avatar Oct 13 '23 12:10 auanasgheps

crazy such a crucial feature is not in? bump

CurlyFlow avatar Oct 16 '23 12:10 CurlyFlow

crazy such a crucial feature is not in? bump

yeah :(

spupuz avatar Oct 16 '23 12:10 spupuz

crazy such a crucial feature is not in? bump

Please read the thread, folks

https://github.com/immich-app/immich/issues/165#issuecomment-1575164317

4NDREWV avatar Oct 16 '23 13:10 4NDREWV

I would like to

  • delete and down-sample images that have already been uploaded to server
  • have a down-sampled local copy of images on server that are not on my phone.

kiwijunglist avatar Oct 30 '23 06:10 kiwijunglist

The PR #4505 seems like it will be merged soon, and it would help mitigate this issue while we wait for the full solution.

vinicentus avatar Nov 09 '23 22:11 vinicentus

The PR #4505 seems like it will be merged soon, and it would help mitigate this issue while we wait for the full solution.

yeah but this is a different think...

spupuz avatar Jan 02 '24 10:01 spupuz

yeah but this is a different think...

It seems to implement the manual deletion of already backed up photos, but not any automatic deletion.

vinicentus avatar Jan 02 '24 14:01 vinicentus

additionally it seems that is not yet merged correct?

spupuz avatar Jan 02 '24 14:01 spupuz