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:
- Open your Settings β Xiaomi Account β Mi Cloud.
- Scroll to the Gallery section and see if synchronization is enabled.
- 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.
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:
- Close the application through the latest task menu.
- Go to Settings β Applications β Gallery β Forced Stop.
- 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:
- For local copies: Find the AllBackup folder in the file manager and delete its contents.
- For cloud: go to Mi Cloud β Backup of the device β Delete.
- 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 backup | Storage path | How to remove |
|---|---|---|
| Local (MIUI) | /MIUI/Backup/AllBackup | Hand-delete folder |
| Cloud (Mi Cloud) | Xiaomi servers | Through the web interface i.mi.com |
| Google Photo | account.google.com | Remove to the Recycle Bin or turn off synchronization |
| Mi PC Suite | User computer | Remove 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:
- Open Mi File Manager (or any other file manager with hidden file support).
- Turn on the display of hidden folders in the manager settings.
- 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:
- Copy all important data from the map to the PC.
- Format the card in your phone: Settings β Storage β SD Card β Format.
- 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
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:
- Install an antivirus (such as Dr.Web Light or Malwarebytes) and scan the system.
- Check the list of installed applications: Settings β Apps β Application Management. Delete suspicious ones (especially with names like System Update, Flash Player or Cleaner).
- 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:
- Turn off file recovery: Settings β Additional β File recovery β Turn off.
- Check camera settings: Open camera β Settings β Save photos. Make sure you select one folder to save (e.g. DCIM/Camera only).
- Disable Storage Optimization: Settings β Storage β Optimization β Turn off.
If the problem persists, try resetting the gallery settings:
- Go to Settings β Applications β Application Management β Gallery.
- Click Storage β Delete data (this will reset all application settings).
- Reboot the phone.