How to Clean a Gallery on Xiaomi Phone: From Photos to Hidden Files

The gallery on Xiaomi smartphones is one of the most downloadable applications, which over time turns into a digital warehouse of unnecessary shots, screenshots and cached thumbnails. Even after manually deleting photos, the system continues to take up gigabytes of memory due to duplicates, temporary files and hidden folders.thumbnails. In this article, we will examine all possible methods of cleaning, from basic removal through the interface to deep cleaning of system folders using the file manager.

The MIUI feature is that the gallery is integrated with the Mi Cloud and automatically syncs media files, which means that simply clicking Delete doesn't always free up space -- files can stay in the trash or cache -- and we'll show you how to permanently erase unnecessary data without a trace, including hidden folders and duplicates that aren't visible in the standard interface.

To start with, the simplest method that works for most users: Xiaomi’s standard gallery (Gallery or Photos app) has built-in tools for deleting files, but many ignore key nuances:

  • πŸ“‚ Deletion of individual files: long-term pressing on the photo β†’ highlight β†’ Recycle Bin button (or Remove) Files are sent to a basket where they are stored for 30 days before final deletion.
  • πŸ—‘οΈ Cleaning the basket: open the "Basket" tab in the gallery β†’ Β«Clear" (or "Delete Everything"). This will free up space occupied by deleted files.
  • πŸ” Search for duplicates: in some versions MIUI (From 12.5), there's a "Duplicate Search" feature in the gallery menu, and it finds identical or similar images.

Important: If you use Google Photos or Mi Cloud, deletion from the gallery is not synced with the cloud. To erase files everywhere, go to the appropriate cloud application and repeat the procedure.

⚠️ Note: Files deleted from the gallery but saved in Mi Cloud or Google Photos continue to take up space in the cloud. To free it, clear the cart in each service separately.

Remove unnecessary photos manually|Clean the gallery basket|Check for duplicates (if there is a function)|Delete files from Mi Cloud/Google Photo (in synchronization)-->

Even after all photos are deleted, the gallery can take up gigabytes of memory due to cached thumbnails and temporary files, which are not visible in the application interface, but can be manually deleted:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Find the Gallery app (or Photos, Miui Gallery).
  3. Select Warehouse. β†’ Clear the cache.
  4. For deep cleaning, click Clear Data (this will reset the gallery settings, but will not delete the photos themselves).

To remove hidden folders with thumbnails:

  1. Use a file manager (such as files from Xiaomi or Solid Explorer).
  2. Enable the display of hidden files in the manager settings.
  3. Go to /storage/emulated/0/DCIM/.thumbnails and delete all files in this folder.
Folder/fileSize (example)Can I remove it?
.thumbnails100-500 MBYes (miniatures regenerating)
Pictures/Screenshots1-5 GBYeah (screenshots)
DCIM/Camera5-20 GBPartially (photo and video)
Android/data/.../cache50–300 MBYes (app cache)

Critical information: Deleting the.thumbnails folder won’t hurt your photos, but the gallery will take longer to load when you first open after cleaning, as thumbnails are created anew.

Once a week.|Once a month|Only when memory ends|Never clean.-->

In MIUI, some gallery files are stored in secure folders that are not displayed by default, and you will need a root file manager or built-in system tools to delete them.

List of hidden folders that can be cleaned:

  • πŸ“ /storage/emulated/0/Android/data/com.miui.gallery β€” cache and gallery settings.
  • πŸ“ /storage/emulated/0/DCIM/.thumbnails β€” Miniatures (already mentioned, but often duplicated).
  • πŸ“ /storage/emulated/0/Pictures/.exif β€” Photo metadata (can be deleted if geotagged).
  • πŸ“ /storage/emulated/0/Android/obb/ β€” Sometimes temporary media files from games are stored here.

To access these folders:

  1. Use Solid Explorer or FX File Explorer with Root Mode enabled (if the phone is rooted).
  2. Or connect your phone to your PC via MTP and use Total Commander with a hidden file plugin.

⚠️ Attention: Do not delete folders DCIM/Camera Or Pictures in its entirety, and that will cause you to lose all your photos.

What to do if you do not have enough permissions to delete files?
If the file manager does not allow you to delete the folder, try it: 1. Restart your phone and try again. 2. Use it. ADB-command to remove (requires included debugging on the USB): adb shell rm -rf /storage/emulated/0/DCIM/.thumbnails 3. Install an alternative gallery (like Google Photos) that doesn’t create hidden files.

4. Automatic cleaning with third-party applications

If manually cleaning a gallery is difficult, you can use specialized utilities that find duplicates, empty folders and unnecessary files automatically.

Top.-3 Gallery Cleaning Apps on Xiaomi:

  • πŸ” Files by Google – Built-in Cleanup Tool Finds Large and Duplicate Files.
  • πŸ—ƒοΈ SD Maid – Deep cache cleanup, including system folders (requires root for full functionality).
  • πŸ“Έ Gallery Doctor – specializes in finding duplicates and blurred photos.

Instructions for Files by Google:

  1. Download the app from the Play Market.
  2. Open the "Cleanup" tab.
  3. Select β€œLarge Files” or β€œDublicates”.
  4. Look through the list and remove the unnecessary.

The advantage of such applications is that they analyze not only the gallery, but also other folders (for example, Downloads or WhatsApp Images), where unnecessary media files often accumulate.

πŸ’‘

Before you massively remove duplicates through third-party apps, back up important photos on your PC or in the cloud.Duplicate search algorithms sometimes get mistaken and delete unique snapshots.

Connecting your phone to your computer gives you more control over files, especially if Xiaomi has little space and apps are unstable.

  1. Connect your phone to your PC through USB-cable (select File Transfer Mode (MTP) notice-curtain).
  2. Open this computer on your PC and find a Xiaomi device.
  3. Go to DCIM, Pictures and Downloads folders.
  4. Delete unnecessary files manually or use utilities like CCleaner to find duplicates.

Advantages of this method:

  • πŸ–₯️ Large screen for easy viewing of photos.
  • πŸ”„ The ability to use powerful PC utilities (for example, Duplicate Cleaner).
  • πŸ“ Backup to the hard disk before deletion.

⚠️ Note: When connecting through MTP Some hidden folders (such as.thumbnails) may not be displayed. To see them, turn on the hidden files in Windows Explorer settings (View) β†’ Hidden elements).

If the gallery is unstable (for example, does not open a photo or constantly reboots), it can help to reset its settings. This will not delete your photos, but return the application to the post-purchase state.

How to drop a gallery:

  1. Go to Settings β†’ Applications β†’ Application Management β†’ Gallery.
  2. Press Warehouse. β†’ Clear the data.
  3. Confirm the action. The app will restart.

What happens after the reset:

  • βœ… All gallery settings (sort, albums) will reset.
  • βœ… Cache and temporary files will be deleted.
  • ❌ Your photos and videos are not affected (they are stored in separate folders).

If the problem is not solved, try to remove gallery updates (in the same application management menu, click "Remove updates"). This will return the application to the factory version.

πŸ’‘

Gallery reset does not delete the photo, but can help if the app slows down or doesn't open files.

To prevent the gallery from getting clogged with garbage, follow the simple rules:

  • πŸ“± Turn off autosave screenshots: in Settings β†’ Additionally. β†’ Screenshots turn off the option β€œSave screenshotsΒ».
  • ☁️ Configure cloud sync: in Google Photos or Mi Cloud, enable automatic deletion of local copies after uploading to the cloud.
  • πŸ—‘οΈ Clean your basket regularly: set a reminder once a month.
  • πŸ”„ Use alternative galleries: Google Photos or Simple Gallery do not create hidden thumbnail folders.

It is also useful to set up automatic cleaning via Settings β†’ Memory β†’ Cleanup. Here you can turn on the Auto Cleanup function, which will delete unnecessary files (such as cache and temporary data) once a week.

For advanced users, if you often take screenshots, reconfigure the save folder from Pictures/Screenshots to the cloud or external memory card.

Can I recover the photo after cleaning the cart?
Yes, but only if you haven't overwrote the data on your phone. Use utilities like DiskDigger or Recuva (on PC). The odds are higher if the phone hasn't connected to the internet after deleting (avoid syncing with the cloud).
Why is the photo not released from the gallery?
You probably still have files in Mi Cloud or Google Photos, and check the.thumbnails folders and gallery cache (instructions above). If the memory is still busy, use SD Maid to search for orphan files.
How to clean up a gallery on Xiaomi without losing important photos?
First, copy all the photos to your PC or external drive. Then use the methods in this article (like cleaning through a PC or Files by Google). Alternatively, upload the photos to Google Photos with the option β€œFree up space” (it will delete local copies after uploading to the cloud).
What if the gallery does not open after cleaning?
Reboot your phone. If the problem persists, reset the gallery settings (Settings β†’ Apps β†’ Gallery β†’ Clear the data). In extreme cases, reinstall the application via APKMirror (requires permission to install from unknown sources).
How to disable the creation of.thumbnails folder?
You can’t completely disable it, but you can clean it regularly (see Section 2).The alternative is to use a third-party gallery (e.g. Simple Gallery) that doesn’t create hidden folders.