Why deleted photos on Xiaomi are back in the gallery: a full analysis of the problem

You deleted photos from Xiaomi's phone, but they reappeared in the gallery after a while? This problem is familiar to many owners of the brand's smartphones, from budget Redmi to flagship Mi or POCO. The reasons for this behavior are several: from the work of cloud services to the features of the MIUI file system. In this article, we will analyze all possible scenarios why deleted photos return, and give step-by-step instructions how to get rid of them forever.

It's important to understand that if the images come back after cleaning, it's not always a system error, most often the fault is the sync settings, the app cache or backups, and we analyzed user feedback on forums (including 4PDA and Mi Community) and tested the solutions on different models, from the Redmi Note 10 to the Xiaomi 13 Ultra, and as a result, we put together a universal algorithm that will help even if standard methods did not work.

1. Cloud sync: why photos are coming back from Mi Cloud

The most common reason for photos to come back is automatic sync with Mi Cloud, and even if you delete a picture locally, it can reappear in the gallery once you connect to the Internet, because Xiaomi defaults to backing up media files.

How it works:

  • πŸ“ You delete a photo from your phone, but it stays in the cloud.
  • πŸ”„ When you next connect to Wi-Fi or mobile Internet, Mi Cloud recovers a β€œdeleted” file.
  • πŸ“± The gallery (com.miui.gallery) automatically displays all media, including the cloud.

To check if Mi Cloud is to blame:

  1. Open your Settings β†’ Xiaomi Account β†’ Mi Cloud.
  2. Scroll to the Gallery section and see if synchronization is enabled.
  3. If yes, disable it or delete the photo directly from the cloud via i.mi.com.

⚠️ Note: If you turn off sync, new photos will no longer automatically save to the cloud.

πŸ“Š You use Mi Cloud to back up your photos?
Yeah, sync's on.
No, I turned it off because of a problem like that.
I use another cloud (Google Photos, Yandex.Disk)
I don't know what it is.

2.Cash galleries and thumbnails: why deleted photos remain visible

Sometimes photos don't come back physically, but are simply displayed in the gallery because of cached thumbnails. The Gallery app (or Google Photos, if installed) creates temporary files to quickly download previews. Even after deleting the original, the thumbnail can remain in the cache for days or weeks.

How to clear the cache:

  • 🧹 For Standard Gallery: Go to Settings β†’ Annexes β†’ Application management β†’ gallery β†’ Warehouse β†’ Clear the cache.
  • πŸ” For Google Photos: Open the app β†’ tap on the avatar β†’ Photo settings β†’ Make room.
  • πŸ—‘οΈ Manual: Use a file manager (e.g. Mi File Manager) and delete the.thumbnails folder in the root directory.

If after cleaning the cache photos are still displayed, try forced reboot gallery:

  1. Close the application through the latest task menu.
  2. Go to Settings β†’ Applications β†’ Gallery β†’ Forced Stop.
  3. Open the gallery again – the miniatures must be updated.

πŸ’‘

If photos only appear in certain folders (e.g. DCIM/Camera), check for the.nomedia file, which blocks the folder from being scanned by the gallery.

3. Backups and system restoration

Xiaomi is actively using automatic data recovery mechanisms, especially after MIUI updates or resets. If you recently updated your firmware or restored your phone from a backup, deleted photos could be returned with other data.

Where to look for backup copies:

  • πŸ”„ Local backups: folder MIUI/Backup/AllBackup inner-memory.
  • ☁️ Cloud backups: Settings β†’ Xiaomi account β†’ Mi Cloud β†’ Backup of the device.
  • πŸ“± Recovery through Mi PC Suite: if you connect your phone to your computer.

How to remove backups from photos:

  1. For local copies: Find the AllBackup folder in the file manager and delete its contents.
  2. For cloud: go to Mi Cloud β†’ Backup of the device β†’ Delete.
  3. Turn off automatic backup in Settings β†’ Additional β†’ Backup and Reset.

⚠️ Note: Deleting backups may result in the loss of other data (contacts, SMS, Before cleaning, make sure that important information is stored elsewhere.

Type of backupStorage pathHow to remove
Local (MIUI)/MIUI/Backup/AllBackupHand-delete folder
Cloud (Mi Cloud)Xiaomi serversThrough the web interface i.mi.com
Google Photoaccount.google.comRemove to the Recycle Bin or turn off synchronization
Mi PC SuiteUser computerRemove through the program on PC

4. Hidden folders and system directories

The Android file system (and MIUI in particular) contains hidden folders where photos can be copied automatically.

  • .trash is a gallery basket (photos are stored here for 30 days).
  • Pictures/Screenshots are screenshots that are sometimes duplicated.
  • Android/data – cache of apps (for example, WhatsApp or Telegram store media here).

How to find and clean hidden folders:

  1. Open Mi File Manager (or any other file manager with hidden file support).
  2. Turn on the display of hidden folders in the manager settings.
  3. Go to the root directory of internal memory and check the folders:.thumbnails – thumbnails..trash or.recycle – basket. DCIM/.thumbnails β€” gallery-cash.

Delete unnecessary files and clean the cart.

Enable the display of hidden files in the manager|Check the.trash folder|Clean up DCIM/.thumbnails|Remove duplicates in Pictures/Screenshots|Reboot the phone-->

If you use Google Photos, check the Pictures/Google Photos folder, which can store automatically created collages or animations from your photos.

5 File system errors and damaged memory cards

If photos are only returned from a microSD, the problem may be file system damage. Xiaomi often uses the exFAT or FAT32 format for removable drives, which are more prone to failure than NTFS.

Signs of memory card damage:

  • πŸ”„ Photos appear after the phone reboot.
  • πŸ“ Folders are duplicated or have strange names (for example, DCIM_123).
  • ⚠️ When connecting to a PC, Windows suggests "fixing disk errorsΒ».

How to fix it:

  1. Copy all important data from the map to the PC.
  2. Format the card in your phone: Settings β†’ Storage β†’ SD Card β†’ Format.
  3. If your phone can't see the card, use a PC: Connect the card through the card reader. Open this computer β†’ right-hand button on the card β†’ Format. Select the exFAT file system (for cards >64 GB).

⚠️ Note: If the memory card often gives out errors, this may be a sign of physical wear and tear. H2testw (Windows or F3 (Linux/macOS) for the presence of broken sectors.

How to check your memory card for Windows errors
Connect the card via the card reader β†’ Open the command line (Win + R β†’ cmd) β†’ Enter: chkdsk E: /f /r (replace E: with the letter of your drive) β†’ Wait for the check to be completed.

6. Viruses and malicious applications

Rarely, but perhaps: some viruses or adware (adware) can recover deleted files to mask their activity, such as the Android.Triada or Android.HiddenAds Trojans are known to manipulate the file system.

Signs of infection:

  • πŸ“₯ Photos are returned with unknown files (e.g..apk or.jpg.exe).
  • πŸ”‹ The phone is quickly discharged or warmed for no reason.
  • πŸ“Š B Settings β†’ Battery seen unfamiliar processes with high consumption.

How to check and clean your phone:

  1. Install an antivirus (such as Dr.Web Light or Malwarebytes) and scan the system.
  2. Check the list of installed applications: Settings β†’ Apps β†’ Application Management. Delete suspicious ones (especially with names like System Update, Flash Player or Cleaner).
  3. Reset your settings to factory: Settings β†’ About Phone β†’ Reset settings (pre-save important data!).

If you suspect a virus but the antivirus doesn’t find anything, try checking with ADB:

adb shell pm list packages -f | findstr "suspicious_keyword"

(substitute suspicious_keyword part of the name of the suspicious package).

πŸ’‘

If photos are returned with banner ads or unknown files, it is 100% a sign of malware. Don’t limit yourself to deleting photos – be sure to clean the system!

7. MIUI Features: Why Firmware Recovers Files

The MIUI proprietary shell has several unique mechanisms that can lead to the "resurrection" of files:

  • πŸ”„ The function "File Recovery" (Settings) β†’ Additionally. β†’ File recovery – scans memory for deleted files and suggests them to return.
  • πŸ“‚ Duplication of media β€” MIUI Sometimes creates copies of photos in a folder MIUI/Camera.
  • πŸ”§ Storage optimization – the system can move files between internal memory and the card SD, which leads to duplication.

How to disable unnecessary functions:

  1. Turn off file recovery: Settings β†’ Additional β†’ File recovery β†’ Turn off.
  2. Check camera settings: Open camera β†’ Settings β†’ Save photos. Make sure you select one folder to save (e.g. DCIM/Camera only).
  3. Disable Storage Optimization: Settings β†’ Storage β†’ Optimization β†’ Turn off.

If the problem persists, try resetting the gallery settings:

  1. Go to Settings β†’ Applications β†’ Application Management β†’ Gallery.
  2. Click Storage β†’ Delete data (this will reset all application settings).
  3. Reboot the phone.

FAQ: Frequent questions about returning photos on Xiaomi

❓ Why do photos come back after a few days?
Most likely, delayed sync with Mi Cloud or Google Photos is to blame. Cloud services can recover files not immediately, but on the next Wi-Fi connection or on a schedule (for example, at night).
❓ I deleted the photos, but they came back after the update. MIUI. Why?
When updating a firmware, Xiaomi sometimes restores data from a backup created before installation. This is standard practice for saving user files. To avoid this, before updating: Disable automatic backup in Settings β†’ Additional β†’ Backup and Reset. Delete unnecessary photos before the update begins.
❓ Can I delete the photo permanently so that it doesn’t recover?
Yes, you need to: Delete photos from all sources: Local phone memory. Mi Cloud (via i.mi.com); Google Photos (including the cart); Memory map (if used); Clear the gallery and file manager cache; disable media synchronization in cloud services; Use irrevocable deletion (for example, through Mi File Manager: highlight files β†’ Delete β†’ Irreversible).
❓ Why Deleted Photos Appear in WhatsApp or Telegram?
Messengers (WhatsApp, Telegram, Viber) automatically save the received media files to their folders (WhatsApp Media, Telegram Images). If you deleted a photo from the gallery, but it remained in the messenger folder, the gallery will display it again the next scan. Solution: Open the file manager and delete the photo from the messenger folders. Turn off auto-save media in the messenger settings (for example, in WhatsApp: Settings β†’ Chat β†’ Media Visibility).
❓ After resetting to factory settings, the old photos returned?
When resetting, Xiaomi can recover data from: Local Backup (MIUI/Backup); Cloud Backup (Mi Cloud); Memory Card (if it hasn't been formatted). To avoid this: Before reset, delete all backups to Settings β†’ Additional β†’ Backup and Reset. Remove the memory card or format it. After reset, don't restore the data from the backup, but configure the phone as new.