Clearing photos for a single user

Hey all, is there currently any way to "reset" a single user on Immich? I have a few family members using the app, so a complete server reset is less than ideal. Also, my user is the built in 'admin' one, so I'm not sure if deleting and recreating that specific user is an option either.
18 Replies
jrasm91
jrasm913y ago
I don't think there is a way to do that specifically, no. You could open a ticket on github with a feature request for that. Or, see if there's a related delete/reset issue and add a request for the admin account. In the interim, you could change the admin's email, and re-create your account as a new, non-admin if you do indeed want a fresh start.
danejur
danejurOP3y ago
yeah, i suppose i'll open a feature request. seems like it may be useful! thanks, @jrasm91
jrasm91
jrasm913y ago
Sorry to hear all your photos got duplicated!
danejur
danejurOP3y ago
hey, that's the cost of living on the Bleeding Edge™ worth it!
jrasm91
jrasm913y ago
Deduping (at the moment) only works if the file is exactly identical. So, could something have altered some metadata of your files on your phone? Do you have two images that are "duplicated" that you could share so we could investigate?
danejur
danejurOP3y ago
well, now that you mention it, i actually just looked at the metadata
danejur
danejurOP3y ago
No description
danejur
danejurOP3y ago
vs
danejur
danejurOP3y ago
No description
jrasm91
jrasm913y ago
Are you on a new-ish android phone?
danejur
danejurOP3y ago
strange. the timestamps are off by the timezone offset s21 ultra, but i've had it for a while now. the photo was taken after setting up immich originally. (not both photos, its only a single photo)
jrasm91
jrasm913y ago
There's some fancy new stuff (I think) where android will automatically include/exclude the gps metadata when an app asks for a picture, depending on location permissions.
danejur
danejurOP3y ago
hmmm, i wonder if that is a difference between the fdroid and playstore versions i don't think i ever denied any permissions
jrasm91
jrasm913y ago
I'm not 100% sure of the cause, but I know there have been some issues in the past where somebody opened a ticket on gps data not showing up in immich for some pictures
danejur
danejurOP3y ago
i will say this, the location info was included with the fdroid version's uploading just checked permissions, location was set to deny (for whatever reason) maybe that was the issue if i'm looking at this right, it seems like this user deletion job could be tweaked to accomplish the clearing of photos
danejur
danejurOP3y ago
No description
danejur
danejurOP3y ago
if you just leave out the userRepository.remove(user) bit and the apiKey removal as well if anything, this could be a good candidate for a cli operation only
jrasm91
jrasm913y ago
Yup. I think we already wanted to make a force option for delete a user, that basically bypasses the 7 day waiting period.

Did you find this page helpful?