Bug when trying to permanently delete assets through Android app (previously moved to trash from web UI) #4833

Open
opened 2026-02-05 10:55:15 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @macvenez on GitHub (Dec 1, 2024).

The bug

I recently removed some assets (moved to trash with remove duplicates utility) using Immich Web UI.
Afterwards I tried permanently deleting those images using the Android app (I selected many of them at once).
The trash section on the app now only shows those deleted images and nothing else (Image 1).
The main section of the app now shows all images as not backupped (cloud with slash icon) (Image 2).
I can only restore the previous state by logging out and back in in the app.

My goal was to also remove those duplicated images also from the phone memory storage because permanently removing them only through the web UI would have left those images on the phone storage

Image 1

immich-1

Image 2

immich-2

The OS that Immich Server is running on

Docker

Version of Immich Server

v1.121.0

Version of Immich Mobile App

v1.121.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - 2283:2283
    depends_on:
      - redis
      - database
    restart: always


  redis:
    container_name: immich_redis
    image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3
    restart: always


  database:
    container_name: immich_postgres
    image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    env_file:
      - .env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    volumes:
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    restart: always

Your .env content

# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=*REDACTED*

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secrets for postgres and typesense. You should change these to random passwords
TYPESENSE_API_KEY=*REDACTED*
DB_PASSWORD=*REDACTED*

# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
DB_DATA_LOCATION=./postgres

REDIS_HOSTNAME=immich_redis

Reproduction steps

  1. Remove some assets using Immich Web UI (actually deleted them through remove duplicates utility)
  2. Try to permanently delete them using Android app by selecting multiple at once

Relevant log output

I couldn't find any error in immich_server container (the output is just like normal)
Same for Android App, no log here

Additional information

No response

Originally created by @macvenez on GitHub (Dec 1, 2024). ### The bug I recently removed some assets (moved to trash with remove duplicates utility) using Immich Web UI. Afterwards I tried permanently deleting those images using the Android app (I selected many of them at once). The trash section on the app now only shows those deleted images and nothing else (Image 1). The main section of the app now shows all images as not backupped (cloud with slash icon) (Image 2). I can only restore the previous state by logging out and back in in the app. My goal was to also remove those duplicated images also from the phone memory storage because permanently removing them only through the web UI would have left those images on the phone storage ## Image 1 ![immich-1](https://github.com/user-attachments/assets/c8f0c6f3-1ce8-4cd2-8df2-a51994c429a8) ## Image 2 ![immich-2](https://github.com/user-attachments/assets/50e00e06-ffba-4748-8ec2-c0303c563115) ### The OS that Immich Server is running on Docker ### Version of Immich Server v1.121.0 ### Version of Immich Mobile App v1.121.0 ### Platform with the issue - [ ] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env ports: - 2283:2283 depends_on: - redis - database restart: always redis: container_name: immich_redis image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3 restart: always database: container_name: immich_postgres image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0 env_file: - .env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} volumes: - ${DB_DATA_LOCATION}:/var/lib/postgresql/data restart: always ``` ### Your .env content ```Shell # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables # The location where your uploaded files are stored UPLOAD_LOCATION=*REDACTED* # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release # Connection secrets for postgres and typesense. You should change these to random passwords TYPESENSE_API_KEY=*REDACTED* DB_PASSWORD=*REDACTED* # The values below this line do not need to be changed ################################################################################### DB_HOSTNAME=immich_postgres DB_USERNAME=postgres DB_DATABASE_NAME=immich DB_DATA_LOCATION=./postgres REDIS_HOSTNAME=immich_redis ``` ### Reproduction steps 1. Remove some assets using Immich Web UI (actually deleted them through remove duplicates utility) 2. Try to permanently delete them using Android app by selecting multiple at once ### Relevant log output ```shell I couldn't find any error in immich_server container (the output is just like normal) Same for Android App, no log here ``` ### Additional information _No response_
OVERLORD added the 📱mobile label 2026-02-05 10:55:15 +03:00
Author
Owner

@tomaThomas commented on GitHub (Dec 22, 2024):

I also had this issue (trashing assets in the web and then trying to empty the trash in the Android app). Here I would expect that local files would be deleted, like it is the case when deleting a single asset from trash.

However, I'd guess that emptying the trash from the web would still lead to these issues, and maybe Immich should remember trashed assets (for a while), so that they can be displayed as trashed on the phone

@tomaThomas commented on GitHub (Dec 22, 2024): I also had this issue (trashing assets in the web and then trying to empty the trash in the Android app). Here I would expect that local files would be deleted, like it is the case when deleting a single asset from trash. However, I'd guess that emptying the trash from the web would still lead to these issues, and maybe Immich should remember trashed assets (for a while), so that they can be displayed as trashed on the phone
Author
Owner

@danieldietzler commented on GitHub (Apr 2, 2025):

As I can tell this isn't really an issue but rather a feature request. That feature will be added in #16732 though

@danieldietzler commented on GitHub (Apr 2, 2025): As I can tell this isn't really an issue but rather a feature request. That feature will be added in #16732 though
Author
Owner

@macvenez commented on GitHub (Apr 3, 2025):

Hi, have you read the description and seen the screenshots?
It does seem to be a bug because after you delete some media only them show up in trash and all other images are showed as "not backupped"

@macvenez commented on GitHub (Apr 3, 2025): Hi, have you read the description and seen the screenshots? It does seem to be a bug because after you delete some media only them show up in trash and all other images are showed as "not backupped"
Author
Owner

@danieldietzler commented on GitHub (Apr 3, 2025):

The latter is a known (visual) state bug. I don't see how images showing up in trash is a bug if you deleted them.

@danieldietzler commented on GitHub (Apr 3, 2025): The latter is a known (visual) state bug. I don't see how images showing up in trash is a bug if you deleted them.
Author
Owner

@macvenez commented on GitHub (Apr 3, 2025):

The issue is that if I permanently delete some images, which are already in trash, then trash now only shows just them (which have just been permanently deleted) and not all images which were in trash before (which weren't permanently deleted)

@macvenez commented on GitHub (Apr 3, 2025): The issue is that if I permanently delete some images, **which are already in trash**, then trash now only shows just them (which have just been permanently deleted) and not all images which were in trash before (which weren't permanently deleted)
Author
Owner

@NicholasFlamy commented on GitHub (Apr 10, 2025):

As I can tell this isn't really an issue but rather a feature request. That feature will be added in #16732 though

The process of trash on the mobile app and whether it's the mobile trash or immich trash is pretty buggy/unclear. I would leave this as a bug until this particular kink is worked out.

@NicholasFlamy commented on GitHub (Apr 10, 2025): > As I can tell this isn't really an issue but rather a feature request. That feature will be added in [#16732](https://github.com/immich-app/immich/pull/16732) though The process of trash on the mobile app and whether it's the mobile trash or immich trash is pretty buggy/unclear. I would leave this as a bug until this particular kink is worked out.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#4833