How to clean the gallery on Xiaomi: remove photos, cache and garbage

The gallery on Xiaomi, Redmi and Poco smartphones eventually turns into chaos, with thousands of photos, screenshots, duplicates, app cache and hidden files taking up precious space in memory. Even after manually deleting unnecessary shots, the system can show that memory is full โ€“ because of temporary files and metadata that the standard Gallery app does not clean automatically.

In this article, we'll look at 5 proven ways to clean a gallery, from basic photo deletion to deep cleaning of the system cache and hidden folders. You'll learn how to make room without losing important data, why standard deletion doesn't always work, and what MIUI tools will help automate the process. And finally, answers to frequent questions and life hacks to keep the gallery in order.

The most obvious, but not always effective, way is to delete files directly in the standard app, which is suitable if you want to get rid of unnecessary pictures manually, but does not solve the problem with cache or duplicates.

How it works:

  • ๐Ÿ“ท Open the Gallery app (icon with multicolored squares).
  • ๐Ÿ” Go to the album All photos or select a specific folder (e.g. Screenshots for screenshots).
  • ๐Ÿ—‘๏ธ Press and hold your finger on the file to activate the selection mode. tick off unnecessary photos/video.
  • ๐Ÿšฎ Click on the basket icon in the upper right corner and confirm removal.

โš ๏ธ Warning: Deleted files enter the Recycle Bin folder (stored for 30 days) and continue to take up space to free up memory immediately after deleting:

  1. Open the menu (three dots in the upper right corner).
  2. Pick a basket. โ†’ Clean up.

๐Ÿ’ก

If you want to delete all screenshots at once, go to Screenshots folder, click on three dots โ†’ Select all โ†’ Delete.

2. Removal of duplicates and similar photos using built-in tools

MIUI has a built-in duplicate search feature, but it's hidden in the depths of settings, and it's a technique that can eliminate repetitive images that eat up memory.

Instructions:

  1. Open the Gallery โ†’ Press three points โ†’ Control.
  2. Select Similar Photos (or Duplicates in the new MIUI 14+ versions).

๐Ÿ” Why it matters: Duplicates often appear in:

  • ๐Ÿ”„ Automatic backup in Google Photos or Mi Cloud.
๐Ÿ“Š How often do you remove duplicates from the gallery?
Once a month
Six months
Only when memory ends
Never.

The Gallery app cache can weigh up to 1-2GB, especially if you frequently view photos or videos, and cleaning it wonโ€™t delete your files, but it will free up space and speed up the app.

How to clear the cache:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Find the Gallery in the list and select it.
  3. Press Warehouse. โ†’ Clear the cache.
  4. (Optional) Click Clear Data, but this will reset the app settings (albums, favorites).

โš ๏ธ Warning: If you've cleaned the cache, it's okay to load thumbnails for a long time. The app re-indexes the files. Wait 5-10 minutes or restart your smartphone.

Additionally, you can clean the cache of media storage (responsible for thumbnails and metadata):

Settings โ†’ Applications โ†’ Show all applications (three dots) โ†’ Show system โ†’ Media storage โ†’ Storage โ†’ Clear cache

Clear the cache of the Gallery appendix"|Remove duplicates in the section "Similar photos"|Clear the basket folder"|Check the โ€œDownloadsโ€ folder for unnecessary files|Clear the Media Storage cache"-->

4. Delete hidden files and folders (including.thumbnails and.nomedia)

Xiaomi smartphones create hidden folders and files that are not visible in the standard gallery, but take up space.

  • ๐Ÿ“.thumbnails โ€“ photo and video miniatures (can weigh hundreds of MB).
  • ๐Ÿ“„.nomedia โ€“ files that block the display of folders in the gallery (they do not take up much space, but can hide garbage).
  • ๐Ÿ“ DCIM/.thumbnails โ€” miniature cache for quick download.
  • ๐Ÿ“ Pictures/Screenshots โ€” Sometimes there are temporary files after editing.

To remove them:

  1. Install a file manager with hidden file support (such as Mi File Manager or Solid Explorer).
  2. Enable the display of hidden files: Mi File Manager โ†’ Three points โ†’ Settings โ†’ Show hidden files
  3. Go to the Inner Memory โ†’ DCIM and delete the.thumbnails folder.
  4. Check Pictures, Downloads, and Movies folders for unnecessary files with the.tmp or.nomedia extension.

โš ๏ธ Attention: Do not delete folders DCIM/Camera or Pictures/Screenshots All photos will be lost, and only temporary files (with extensions.tmp,.thumb) and empty folders.thumbnails will be deleted.

What if, after deleting.thumbnails, the gallery creates this folder again?
This folder is automatically restored when you view a photo, which is normal for Android to reduce its size, regularly clean the cache of the gallery (section 3) or use third-party photo viewing apps (such as Google Photos) that store the cache in the cloud.

5.Use of third-party applications for deep cleaning

If the built-in MIUI tools don't work, third-party utilities can find:

  • ๐Ÿ—ƒ๏ธ Empty folders (remain after deleting photos).
  • ๐Ÿ“ธ Blurred or damaged photos.
  • ๐ŸŽฅ Unrecorded videos (files with zero size).
  • ๐Ÿ” Duplicates in other folders (for example, WhatsApp Images and other folders) DCIM).

Top.-3 gallery-cleaning:

AnnexFunctionsPlusesCons
Files by GoogleSearch for duplicates, large files, clearing cacheFree, no advertising, integration with Google PhotosCan't find hidden folders.thumbnails
CCleanerDeep cache cleanup, deletion of temporary filesConvenient interface, cleaning on schedulePaid functions in the Pro-version
Duplicate Files FixerSearch for duplicate photos, videos, documentsAccurate comparison algorithm, cloud storage supportSlow scanning of large libraries

๐Ÿ”น Tip: Before mass removal through third-party apps, back up important photos in Google Photos or on PC. Some utilities may mistakenly mark unique photos as duplicates.

To avoid manual cleaning, set up automatic cleaning through:

1. The "Cleaning" function in MIUI:

  • ๐Ÿงน Go to Settings. โ†’ Cleanup.
  • ๐Ÿ” Press Deep Cleanup. โ†’ Select Garbage Files and App Cash.
  • โš™๏ธ Enable Auto Cleanup (will remove garbage once a week).

2. Google Photos (automatic backup + cleanup):

  • ๐Ÿ“ฑ Install Google Photos and enable Backup and Sync.
  • โ˜๏ธ Go to Settings. โ†’ Free up space โ€“ the app will prompt you to delete photos that have already been uploaded to the cloud.
  • ๐Ÿ—“๏ธ Set up automatic removal of screenshots older than 30 days: Settings โ†’ Archives โ†’ Automatic removal of screenshots.

3.Mi Cloud (for Xiaomi users):

  • ๐ŸŒฅ๏ธ Enable backup in Settings โ†’ Xiaomi account โ†’ Mi Cloud โ†’ gallery.
  • ๐Ÿ”„ After uploading photos to the cloud, you can delete them from the device, leaving only thumbnails.

๐Ÿ’ก

Auto-cleaning through Google Photos or Mi Cloud is the most reliable way to free up space, but requires stable internet and free space in the cloud.

Frequent Mistakes and How to Avoid Them

When cleaning a gallery, users often face problems, and here are the most common ways to solve them:

1. After the photo is deleted, memory is not released

โš ๏ธ Note: This happens if files are not deleted from the internal memory, but from the internal memory. SD-Cards (which can be connected as portable storage) also check the Recycle Bin folder - it may be hidden in some versions MIUI.

Solution: Use a file manager (such as Mi File Manager) and manually check the DCIM, Pictures, and Downloads folders on both media.

2.The gallery is not updated after cleaning

If they are still displayed in the gallery after the photo is deleted, the reasons may be:

  • ๐Ÿ”„ The thumbnail cache is not updated (clean the cache as in Section 3).
  • ๐Ÿ“ Files not deleted completely (check hidden folders).
  • ๐Ÿ“ฑ The Gallery app is not working properly (reset it or reinstall the update via Google Play).

3. You can not delete files from the DCIM/Camera folder

โš ๏ธ Note: If the system writes โ€œImpossible to deleteโ€, it is likely that the files are protected or used by another application (for example, Google Photos is syncing them at the moment).

Decision:

  1. Close all applications that work with photos (including cloud services).
  2. Restart your smartphone and try to delete it again.
  3. If it doesnโ€™t work, connect your phone to your PC and delete files through Windows/macOS Explorer.

FAQ: Answers to Frequent Questions

Can I recover deleted photos from the Xiaomi Gallery?
Yes, if the files are still in the Recycle Bin (stopped for 30 days). To recover: Open Gallery โ†’ three dots โ†’ Recycle Bin. Select a photo and click Restore. If the Recycle Bin is cleared, try data recovery software (e.g., DiskDigger or Recuva), but the odds depend on whether the files have been overwritten with new data.
Why does Xiaomi Gallery show photos that are not in memory?
It's because of this: ๐Ÿ” Cache thumbnails (clean the.thumbnails folder as in Section 4). โ˜๏ธ Cloud services (e.g. Google Photos or Mi Cloud) show photos deleted from the device but stored in the cloud). ๐Ÿ“ External storage (photos can be used for the SD-map or connected USB-To hide cloud photos from the gallery, turn off the display of cloud albums in the application settings.
How to clean up a gallery on Xiaomi without losing important photos?
Follow this algorithm: ๐Ÿ“ค Back up all your photos in Google Photos or on PC. ๐Ÿงน Remove duplicates through the built-in tool (Section 2). ๐Ÿ—‘๏ธ Clean the cache and basket (Section 3). ๐Ÿ” Manually check Downloads, Screenshots and WhatsApp Images folders. โ˜๏ธ Set up automatic cleaning via Google Photos or Mi Cloud (Section 6) so you can free up to 30-50% of memory without losing important photos.
Why after cleaning the gallery, the smartphone began to slow down?
This is a temporary effect associated with: ๐Ÿ”„ Re-indexing media files (the gallery re-scans folders). ๐Ÿ“ฑ Background processes (e.g. Google Photos syncs changes) Solution: Reboot your smartphone and wait 10-15 minutes. If the brakes are left, clear the Media Store app cache (instruction in Section 3).
Can I turn off the automatic creation of the.thumbnails folder?
No, it's a system function of Android. The.thumbnails folder is automatically created to speed up the download of thumbnails: ๐Ÿงน Clean it regularly (once every 1-2 months). ๐Ÿ› ๏ธ Use third-party galleries (such as Simple Gallery) that store cache elsewhere. ๐Ÿ“ต Disable preloading of thumbnails in the settings of the Gallery app (if such option is in your version) MIUI).