Immich trash does not delete assets (on Android app) #6727

Open
opened 2026-02-20 04:15:39 -05:00 by deekerman · 5 comments
Owner

Originally created by @nnciprian on GitHub (Sep 14, 2025).

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

https://github.com/user-attachments/assets/13028da9-8b88-417d-9ddc-e87b7bbf3557

I go to trash on beta timeline (does the same on old timeline as well) and even if i delete tthe items in trash they won't be deleted server side.

The OS that Immich Server is running on

PRETTY_NAME="Ubuntu 22.04.5 LTS"

Version of Immich Server

v1.142.0

Version of Immich Mobile App

v1.142.0

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

Galaxy S23 Android 15

Your docker-compose.yml content

#
# WARNING: To install Immich, follow our guide: https://immich.app/docs/install/docker-compose
#
# Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    extends:
      file: hwaccel.transcoding.yml
      service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
    volumes:
      # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
      disable: false

  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
    #   file: hwaccel.ml.yml
    #   service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always
    healthcheck:
      disable: false

  redis:
    container_name: immich_redis
    image: docker.io/valkey/valkey:8-bookworm@sha256:facc1d2c3462975c34e10fccb167bfa92b0e0dbd992fc282c29a61c3243afb11
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always

  database:
    container_name: immich_postgres
    image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:5f6a838e4e44c8e0e019d0ebfe3ee8952b69afc2809b2c25f7b0119641978e91
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
      # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
      # DB_STORAGE_TYPE: 'HDD'
    volumes:
      # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    shm_size: 128mb
    restart: always

volumes:
  model-cache:

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=**edited**

# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=**edited**

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=Europe/Bucharest

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

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=**edited**

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=**edited**
DB_DATABASE_NAME=**edited**

Reproduction steps

  1. Go to trash on mobile
    2.permanently delete
  2. return to trash to see the 'deleted' files still present
    ...

Relevant log output


Additional information

No response

Originally created by @nnciprian on GitHub (Sep 14, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug https://github.com/user-attachments/assets/13028da9-8b88-417d-9ddc-e87b7bbf3557 I go to trash on beta timeline (does the same on old timeline as well) and even if i delete tthe items in trash they won't be deleted server side. ### The OS that Immich Server is running on PRETTY_NAME="Ubuntu 22.04.5 LTS" ### Version of Immich Server v1.142.0 ### Version of Immich Mobile App v1.142.0 ### Platform with the issue - [ ] Server - [ ] Web - [x] Mobile ### Device make and model Galaxy S23 Android 15 ### Your docker-compose.yml content ```YAML # # WARNING: To install Immich, follow our guide: https://immich.app/docs/install/docker-compose # # Make sure to use the docker-compose.yml of the current release: # # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml # # The compose file on main may not be compatible with the latest release. name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} extends: file: hwaccel.transcoding.yml service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding volumes: # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env ports: - '2283:2283' depends_on: - redis - database restart: always healthcheck: disable: false immich-machine-learning: container_name: immich_machine_learning # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag. # Example tag: ${IMMICH_VERSION:-release}-cuda image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration # file: hwaccel.ml.yml # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable volumes: - model-cache:/cache env_file: - .env restart: always healthcheck: disable: false redis: container_name: immich_redis image: docker.io/valkey/valkey:8-bookworm@sha256:facc1d2c3462975c34e10fccb167bfa92b0e0dbd992fc282c29a61c3243afb11 healthcheck: test: redis-cli ping || exit 1 restart: always database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:5f6a838e4e44c8e0e019d0ebfe3ee8952b69afc2809b2c25f7b0119641978e91 environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs # DB_STORAGE_TYPE: 'HDD' volumes: # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file - ${DB_DATA_LOCATION}:/var/lib/postgresql/data shm_size: 128mb restart: always volumes: model-cache: ``` ### 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=**edited** # The location where your database files are stored. Network shares are not supported for the database DB_DATA_LOCATION=**edited** # To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List TZ=Europe/Bucharest # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release # Connection secret for postgres. You should change it to a random password # Please use only the characters `A-Za-z0-9`, without special characters or spaces DB_PASSWORD=**edited** # The values below this line do not need to be changed ################################################################################### DB_USERNAME=**edited** DB_DATABASE_NAME=**edited** ``` ### Reproduction steps 1. Go to trash on mobile 2.permanently delete 3. return to trash to see the 'deleted' files still present ... ### Relevant log output ```shell ``` ### Additional information _No response_
Author
Owner

@bo0tzz commented on GitHub (Sep 14, 2025):

How does it behave in the web client?

@bo0tzz commented on GitHub (Sep 14, 2025): How does it behave in the web client?
Author
Owner

@nnciprian commented on GitHub (Sep 14, 2025):

How does it behave in the web client?

In web client it seems like trash is behaving as expected and deletes the assets correctly

@nnciprian commented on GitHub (Sep 14, 2025): > How does it behave in the web client? In web client it seems like trash is behaving as expected and deletes the assets correctly
Author
Owner

@nnciprian commented on GitHub (Sep 14, 2025):

logs i see in app after trying to delete

`2025-09-14 12:53:33.587979 | severe | ThumbnailWidget | Error loading image: Exception: Invalid image data | Exception: Invalid image data |
#0 _futurize (dart:ui/painting.dart:7977)
#1 ImageDescriptor.encoded (dart:ui/painting.dart:7771)
#2 instantiateImageCodecWithSize (dart:ui/painting.dart:2558)
#3 PaintingBinding.instantiateImageCodecWithSize (package:flutter/src/painting/binding.dart:147)
#4 RemoteImageRequest._decodeBuffer (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:164)
#5 RemoteImageRequest.load (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:32)

#6 CancellableImageProviderMixin.loadRequest (package:immich_mobile/presentation/widgets/images/image_provider.dart:59)

#7 ImageStreamCompleter.setImage (package:flutter/src/painting/image_stream.dart:729)

2025-09-14 12:53:33.587938 | severe | RemoteImageRequest | Failed to decode cached image | Exception: Invalid image data |
2025-09-14 12:53:33.579109 | severe | ThumbnailWidget | Error loading image: Exception: Invalid image data | Exception: Invalid image data |
#0 _futurize (dart:ui/painting.dart:7977)
#1 ImageDescriptor.encoded (dart:ui/painting.dart:7771)
#2 instantiateImageCodecWithSize (dart:ui/painting.dart:2558)
#3 PaintingBinding.instantiateImageCodecWithSize (package:flutter/src/painting/binding.dart:147)
#4 RemoteImageRequest._decodeBuffer (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:164)
#5 RemoteImageRequest.load (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:32)

#6 CancellableImageProviderMixin.loadRequest (package:immich_mobile/presentation/widgets/images/image_provider.dart:59)

#7 ImageStreamCompleter.setImage (package:flutter/src/painting/image_stream.dart:729)

2025-09-14 12:53:33.579094 | severe | RemoteImageRequest | Failed to decode cached image | Exception: Invalid image data |
2025-09-14 12:53:33.578521 | severe | ThumbnailWidget | Error loading image: Exception: Invalid image data | Exception: Invalid image data |
#0 _futurize (dart:ui/painting.dart:7977)
#1 ImageDescriptor.encoded (dart:ui/painting.dart:7771)
#2 instantiateImageCodecWithSize (dart:ui/painting.dart:2558)
#3 PaintingBinding.instantiateImageCodecWithSize (package:flutter/src/painting/binding.dart:147)
#4 RemoteImageRequest._decodeBuffer (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:164)
#5 RemoteImageRequest.load (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:32)

#6 CancellableImageProviderMixin.loadRequest (package:immich_mobile/presentation/widgets/images/image_provider.dart:59)

#7 ImageStreamCompleter.setImage (package:flutter/src/painting/image_stream.dart:729)

2025-09-14 12:53:33.578493 | severe | RemoteImageRequest | Failed to decode cached image | Exception: Invalid image data |
2025-09-14 12:53:33.501520 | severe | ThumbnailWidget | Error loading image: Exception: Invalid image data | Exception: Invalid image data |
#0 _futurize (dart:ui/painting.dart:7977)
#1 ImageDescriptor.encoded (dart:ui/painting.dart:7771)
#2 instantiateImageCodecWithSize (dart:ui/painting.dart:2558)
#3 PaintingBinding.instantiateImageCodecWithSize (package:flutter/src/painting/binding.dart:147)
#4 RemoteImageRequest._decodeBuffer (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:164)
#5 RemoteImageRequest.load (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:32)

#6 CancellableImageProviderMixin.loadRequest (package:immich_mobile/presentation/widgets/images/image_provider.dart:59)

#7 ImageStreamCompleter.setImage (package:flutter/src/painting/image_stream.dart:729)

2025-09-14 12:53:33.382877 | severe | ThumbnailWidget | Error loading image: Exception: Invalid image data | Exception: Invalid image data |
#0 _futurize (dart:ui/painting.dart:7977)
#1 ImageDescriptor.encoded (dart:ui/painting.dart:7771)
#2 instantiateImageCodecWithSize (dart:ui/painting.dart:2558)
#3 PaintingBinding.instantiateImageCodecWithSize (package:flutter/src/painting/binding.dart:147)
#4 RemoteImageRequest._decodeBuffer (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:164)
#5 RemoteImageRequest.load (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:32)

#6 CancellableImageProviderMixin.loadRequest (package:immich_mobile/presentation/widgets/images/image_provider.dart:59)

#7 ImageStreamCompleter.setImage (package:flutter/src/painting/image_stream.dart:729)

2025-09-14 12:53:29.905334 | severe | ThumbnailWidget | Error loading image: Exception: Invalid image data | Exception: Invalid image data |
#0 _futurize (dart:ui/painting.dart:7977)
#1 ImageDescriptor.encoded (dart:ui/painting.dart:7771)
#2 instantiateImageCodecWithSize (dart:ui/painting.dart:2558)
#3 PaintingBinding.instantiateImageCodecWithSize (package:flutter/src/painting/binding.dart:147)
#4 RemoteImageRequest._decodeBuffer (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:164)
#5 RemoteImageRequest.load (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:32)

#6 CancellableImageProviderMixin.loadRequest (package:immich_mobile/presentation/widgets/images/image_provider.dart:59)

#7 ImageStreamCompleter.setImage (package:flutter/src/painting/image_stream.dart:729)

2025-09-14 12:53:28.324745 | fine | socket_io_client:engine.Socket | flushing 1 packets in socket |
2025-09-14 12:53:28.324413 | fine | socket_io_client:engine.Socket | socket receive: type "ping", data "null" |
`

@nnciprian commented on GitHub (Sep 14, 2025): logs i see in app after trying to delete `2025-09-14 12:53:33.587979 | severe | ThumbnailWidget | Error loading image: Exception: Invalid image data | Exception: Invalid image data | #0 _futurize (dart:ui/painting.dart:7977) #1 ImageDescriptor.encoded (dart:ui/painting.dart:7771) #2 instantiateImageCodecWithSize (dart:ui/painting.dart:2558) #3 PaintingBinding.instantiateImageCodecWithSize (package:flutter/src/painting/binding.dart:147) #4 RemoteImageRequest._decodeBuffer (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:164) #5 RemoteImageRequest.load (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:32) <asynchronous suspension> #6 CancellableImageProviderMixin.loadRequest (package:immich_mobile/presentation/widgets/images/image_provider.dart:59) <asynchronous suspension> #7 ImageStreamCompleter.setImage (package:flutter/src/painting/image_stream.dart:729) <asynchronous suspension> 2025-09-14 12:53:33.587938 | severe | RemoteImageRequest | Failed to decode cached image | Exception: Invalid image data | 2025-09-14 12:53:33.579109 | severe | ThumbnailWidget | Error loading image: Exception: Invalid image data | Exception: Invalid image data | #0 _futurize (dart:ui/painting.dart:7977) #1 ImageDescriptor.encoded (dart:ui/painting.dart:7771) #2 instantiateImageCodecWithSize (dart:ui/painting.dart:2558) #3 PaintingBinding.instantiateImageCodecWithSize (package:flutter/src/painting/binding.dart:147) #4 RemoteImageRequest._decodeBuffer (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:164) #5 RemoteImageRequest.load (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:32) <asynchronous suspension> #6 CancellableImageProviderMixin.loadRequest (package:immich_mobile/presentation/widgets/images/image_provider.dart:59) <asynchronous suspension> #7 ImageStreamCompleter.setImage (package:flutter/src/painting/image_stream.dart:729) <asynchronous suspension> 2025-09-14 12:53:33.579094 | severe | RemoteImageRequest | Failed to decode cached image | Exception: Invalid image data | 2025-09-14 12:53:33.578521 | severe | ThumbnailWidget | Error loading image: Exception: Invalid image data | Exception: Invalid image data | #0 _futurize (dart:ui/painting.dart:7977) #1 ImageDescriptor.encoded (dart:ui/painting.dart:7771) #2 instantiateImageCodecWithSize (dart:ui/painting.dart:2558) #3 PaintingBinding.instantiateImageCodecWithSize (package:flutter/src/painting/binding.dart:147) #4 RemoteImageRequest._decodeBuffer (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:164) #5 RemoteImageRequest.load (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:32) <asynchronous suspension> #6 CancellableImageProviderMixin.loadRequest (package:immich_mobile/presentation/widgets/images/image_provider.dart:59) <asynchronous suspension> #7 ImageStreamCompleter.setImage (package:flutter/src/painting/image_stream.dart:729) <asynchronous suspension> 2025-09-14 12:53:33.578493 | severe | RemoteImageRequest | Failed to decode cached image | Exception: Invalid image data | 2025-09-14 12:53:33.501520 | severe | ThumbnailWidget | Error loading image: Exception: Invalid image data | Exception: Invalid image data | #0 _futurize (dart:ui/painting.dart:7977) #1 ImageDescriptor.encoded (dart:ui/painting.dart:7771) #2 instantiateImageCodecWithSize (dart:ui/painting.dart:2558) #3 PaintingBinding.instantiateImageCodecWithSize (package:flutter/src/painting/binding.dart:147) #4 RemoteImageRequest._decodeBuffer (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:164) #5 RemoteImageRequest.load (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:32) <asynchronous suspension> #6 CancellableImageProviderMixin.loadRequest (package:immich_mobile/presentation/widgets/images/image_provider.dart:59) <asynchronous suspension> #7 ImageStreamCompleter.setImage (package:flutter/src/painting/image_stream.dart:729) <asynchronous suspension> 2025-09-14 12:53:33.382877 | severe | ThumbnailWidget | Error loading image: Exception: Invalid image data | Exception: Invalid image data | #0 _futurize (dart:ui/painting.dart:7977) #1 ImageDescriptor.encoded (dart:ui/painting.dart:7771) #2 instantiateImageCodecWithSize (dart:ui/painting.dart:2558) #3 PaintingBinding.instantiateImageCodecWithSize (package:flutter/src/painting/binding.dart:147) #4 RemoteImageRequest._decodeBuffer (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:164) #5 RemoteImageRequest.load (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:32) <asynchronous suspension> #6 CancellableImageProviderMixin.loadRequest (package:immich_mobile/presentation/widgets/images/image_provider.dart:59) <asynchronous suspension> #7 ImageStreamCompleter.setImage (package:flutter/src/painting/image_stream.dart:729) <asynchronous suspension> 2025-09-14 12:53:29.905334 | severe | ThumbnailWidget | Error loading image: Exception: Invalid image data | Exception: Invalid image data | #0 _futurize (dart:ui/painting.dart:7977) #1 ImageDescriptor.encoded (dart:ui/painting.dart:7771) #2 instantiateImageCodecWithSize (dart:ui/painting.dart:2558) #3 PaintingBinding.instantiateImageCodecWithSize (package:flutter/src/painting/binding.dart:147) #4 RemoteImageRequest._decodeBuffer (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:164) #5 RemoteImageRequest.load (package:immich_mobile/infrastructure/loaders/remote_image_request.dart:32) <asynchronous suspension> #6 CancellableImageProviderMixin.loadRequest (package:immich_mobile/presentation/widgets/images/image_provider.dart:59) <asynchronous suspension> #7 ImageStreamCompleter.setImage (package:flutter/src/painting/image_stream.dart:729) <asynchronous suspension> 2025-09-14 12:53:28.324745 | fine | socket_io_client:engine.Socket | flushing 1 packets in socket | 2025-09-14 12:53:28.324413 | fine | socket_io_client:engine.Socket | socket receive: type "ping", data "null" | `
Author
Owner

@PDerid commented on GitHub (Oct 30, 2025):

I have the same issue.

@PDerid commented on GitHub (Oct 30, 2025): I have the same issue.
Author
Owner

@richard1912 commented on GitHub (Jan 5, 2026):

Additional Reproduction Case

I'm experiencing the same issue on Android 15+. When attempting to delete an image from the main view:

  1. Tap the Delete button in the action bar
  2. A confirmation dialog appears: "Are you sure you want to delete this asset? This action will move the asset to the server's trash and will prompt if you want to delete it locally."
  3. User confirms the deletion
  4. The dialog closes but the image is NOT deleted - it remains in the app with no error message

The button UI is functional (shows the dialog), but the backend deletion operation fails silently.

Video demonstrating this: https://github.com/immich-app/immich/issues/25063

This appears to be a broader issue with the delete functionality across different contexts (deleting from main view, deleting from trash, etc.) on Android.

@richard1912 commented on GitHub (Jan 5, 2026): ## Additional Reproduction Case I'm experiencing the same issue on Android 15+. When attempting to delete an image from the main view: 1. Tap the Delete button in the action bar 2. A confirmation dialog appears: "Are you sure you want to delete this asset? This action will move the asset to the server's trash and will prompt if you want to delete it locally." 3. User confirms the deletion 4. **The dialog closes but the image is NOT deleted** - it remains in the app with no error message The button UI is functional (shows the dialog), but the backend deletion operation fails silently. Video demonstrating this: https://github.com/immich-app/immich/issues/25063 This appears to be a broader issue with the delete functionality across different contexts (deleting from main view, deleting from trash, etc.) on Android.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/immich#6727
No description provided.