You try to make room on Xiaomi, but the photos are stubbornly not deleted - neither through the gallery nor through the file manager, POCO and Black Shark. 80% In some cases, it is not the pictures themselves that are to blame, but the features of firmware. MIUI, Access rights conflicts or hidden system processes, such as photos from a folder DCIM/.thumbnails The files can be restored automatically, and files from the Mi Cloud can only appear deleted.
In this article, weβll look at 10 real reasons why photos arenβt deleted from Xiaomi, from the clichΓ©d cache of the gallery to the bugs of the F2FS file system used in new models. Youβll get exact commands for ADB if standard methods donβt work, and learn how to disable automatic backups that interfere with cleaning, and a compatibility table for different versions of MIUI (12 to 14).
1.Cash galleries and thumbnails: why photos come back after deletion
The most common reason for undelete photos on Xiaomi is the thumbnail cache. When you delete a picture from the DCIM/Camera folder, the system can leave a copy of it in the hidden DCIM/.thumbnails directory or in the Gallery app cache, and the next time you open the gallery, these thumbnails are reloaded, creating the illusion that the photo has βresurfaced.β
How to check:
- π Open any file manager (e.g., Mi File Manager or Solid Explorer).
- π Go to the Inner Memory β DCIM β.thumbnails (enable the display of hidden folders in the manager settings).
- ποΈ Delete all files in this folder β they will be restored automatically, but without the ghosts of old photos.
If the problem persists, clear the cache of the gallery itself:
- Open Settings β Applications β Application Management.
- Find the Gallery (or Google Photos if you use it).
- Press Warehouse. β Clear the cache.
π‘
After cleaning the cache, restart the phone β this will speed up the update of the media database.
2 Access Rights and Protected MIUI Folders
MIUI firmware is heavily using secure folders for sensitive data. If you're trying to delete photos from folders like MIUI/Extra, MIUI/Camera/Private or Android/data/com.miui.gallery, the system can block action due to insufficient rights, especially for devices with unlocked bootloader or root rights.
How to check your rights:
- π Install a file manager with root support (such as Root Explorer or Root Explorer). FX File Explorer).
- π Go to the problem folder, hold your finger on the file and select Properties β Permits.
- π If the rights are set as r--r--r-- (Read only, change them to rw-rw-rw- (full access).
For MIUI folders, you may need to disable protection:
- Open Settings β Privacy β Special permissions β Access to files.
- Find the Gallery and disable access to the Secure Folders.
- Repeat the removal attempt.
What if there are no root rights?
3. Cloud backup Mi Cloud and Google Photos
If your Xiaomi has automatic backup enabled to Mi Cloud or Google Photos, deleted local photos can be synced back when you next connect to the Internet, including the Mi Cloud/Backup/Photos folder and Google Photos albums, where files are stored in compressed form but take up cache space.
How to turn off synchronization:
| Service | The path to settings | Action. |
|---|---|---|
| Mi Cloud | Settings β Xiaomi Account β Mi Cloud β Gallery | Turn off synchronization of photos |
| Google Photo | Open the application β Profile β Backup settings | Choose High Quality or Turn Off Backup |
| OneDrive | Settings β Accounts β OneDrive β Camera Autoboot | Turn off Automatic Booting |
After the synchronization is disabled:
- Remove photos from the cloud manually (via the web version of Mi Cloud or Google Photos).
- Clear the cache of cloud applications in Settings β Apps.
- Reboot the phone.
Mi Cloud|Google Photo|OneDrive|Yandex.Disk.|Don't use the cloud.-->
File system errors: F2FS vs ext4
New Xiaomi smartphones (for example, Redmi Note 12 Pro)+ Xiaomi 13 Ultra uses a file system F2FS opportunistic ext4. It is optimized for flash memory, but has bugs with large file processing (for example, for example, RAW-photo 4K). If you see an error in the file being used or not enough rights, the problem may be in the corrupted metadata. F2FS.
How to check the file system:
- π± Connect the phone to the PC and perform in ADB team:
- π If there is a line in the conclusion with f2fs sectional /data, Your device uses this file system.
- π οΈ To correct errors, follow:
If the commands didnβt help, try resetting the partition cache (does not delete data, but requires a reboot):
- Turn off the phone.
- Press Power + Volume Up to Enter Recovery.
- Choose Wipe & Reset β Wipe Cache.
- Reset the device.
π‘
F2FS is sensitive to sudden power outages. If the phone often runs to zero, it can damage the file system and cause file deletion problems.
5. Viruses and malicious applications
Some viruses (e.g. Android.Trojan.HiddenAds) block deleting files to hide their presence, they can disguise themselves as system processes (e.g. com.android.system) or fake gallery apps. If photos are not deleted, and in Settings β Battery you see unknown processes with high consumption, this is an excuse to check the phone for viruses.
How to Detect and Remove the Virus:
- π‘οΈ Install Malwarebytes or Dr.Web Light and perform a deep scan.
- π Check the list of installed applications in Settings β Annexes β Note programs with names like Gallery Helper, Photo Manager or System Update (unless you installed them).
- π« Remove suspicious apps and clear the Google Play Services cache.
If the virus blocks removal:
- Go to Safe Mode (press the power button β Safe Mode).
- Repeat the attempt to delete the photo.
- If you can, remove the virus and restart the phone.
Install antivirus (Malwarebytes/Dr.Web)|Scan the system.|Check the list of applications|Delete suspicious programs|Clear the cache of Google Play Services-->
6. Damaged SD-maps and external drives
If the photos are stored on SD-card or external drive (for example, Xiaomi) OTG-The problem may be in damaged memory sectors. Xiaomiβs system does not always correctly handle read/write errors, which makes files seem βindestructible.β U1 or fake storage.
How to check SD-map:
- π± Connect the card to the PC through the card reader.
- π₯οΈ In Windows, open Command Prompt (on behalf of the administrator) and execute:
- π Replace E: with the letter of your disk.
- π If errors are found, the card is better to replace - data recovery may not help.
If the card is correct, but the photo is not deleted:
- Copy all important data on the PC.
- Format the map in FAT32 or exFAT (via PC or in Settings) β Warehouse β SD-map β Format).
- Return the files (except for the problematic photos).
π‘
To check the speed SD-maps use the app A1 SD If the write speed is below 10MB/s, the card is fake or badly worn.
7. MIUI system bugs: known problems and workarounds
Some versions of MIUI have critical media file processing bugs, such as:
- π V MIUI 12.5 There was an error that caused the files to be in the folder. Pictures/Screenshots not removed through the gallery (resolved by updating the MIUI 13).
- π V MIUI 14 for Xiaomi 13 and Redmi K60 A bug with βghostβ files appeared in the gallery, but were physically absent from the disk.
- π V MIUI for POCO Sometimes the paths to folders are confused, and the photo from DCIM/Camera duplicated MIUI/Camera.
Bypasses for system bugs:
| Problem. | MIUI version | Decision |
|---|---|---|
| Photos returned after being deleted | 12.0β12.5 | Upgrade to MIUI 13+ or use ADB |
| Screenshots are not deleted | 12.5β13.0 | Delete through Files β Categories β Screenshots |
| MIUI/Camera folder is not cleaned | 14.0 (POCO) | Disable Double Apps in Settings |
If your problem is not on the list:
- Check the relevance of the firmware in Settings β About the phone β System update.
- Clear the Gallery app data (in Settings β Apps β Gallery β Storage β Clear data).
- Create a themed post on the XDA Developers or 4PDA forum, with the phone model and MIUI version listed.
π‘
Before updating MIUI, back up your photo on your PC β in rare cases, the update can result in data loss in the DCIM folder.