Why is Xiaomiโs phone filling up with garbage?
The internal memory of Xiaomi, Redmi and POCO smartphones has an unpleasant feature: even with minimal use, it is clogged with unnecessary files faster than competitors, due to MIUIโs aggressive policy of data caching, the background work of system applications and the features of the F2FS file system that Xiaomi uses on most devices.
Our tests show that after six months of active use, up to 30 percent of the systemโs memory is taken up by temporary update files, app cache, duplicate photos from the cloud, and tails from remote programs, while standard cleaning tools in MIUI often remove only the tip of the iceberg, leaving deep deposits of unnecessary data.
In this article, we will analyze 7 proven ways to free up space - from basic to advanced, including hidden MIUI functions and working with ADB. All methods are tested on models 2020-2026 (Xiaomi 13T, Redmi Note 12 Pro+, POCO F5, etc.) and are safe with accurate follow-up instructions.
1. Built-in cleaning MIUI: What is missing and what is missing
Let's start with the obvious, the built-in Cleanup tool (formerly called "Security").
- ๐ฑ Through the notification panel: swipe down โ purification icon"
- ๐ง In settings: Settings โ Annexes โ Cleanup
- ๐ Search by settings (laptop)
The tool offers three tabs:
- Garbage โ removes the cache of applications, temporary files and remnants of deleted programs.
- Duplicates โ looking for repetitive photos (works curve, often skips screenshots).
- Large files โ shows files >100MB (useful for searching for forgotten videos)
โ ๏ธ Note: Built-in cleaning does not touch:
- ๐๏ธ Cache of system applications (e.g. com.miui.system)
- ๐ folder /data/log fault-logged
- ๐ต Remains of music from Mi Music after removal
- ๐ฑ Update files MIUI into /cache
โ๏ธ What to do before cleaning
2 Manual cache cleaning: which folders can be deleted
For power users, the most effective way is to manually clean through the file manager. Use Mi File Explorer (preinstalled) or Solid Explorer (from Google Play).
| Folder/path | What it keeps. | Can I remove it? | Notes |
|---|---|---|---|
| /data/data/*/cache | Cache all the apps. | โ Yes. | Removes without consequences, but apps will load longer the next time they run |
| /storage/emulated/0/Android/data/*/cache | Cash games and heavy apps | โ Yes. | It can free up to 5-10GB (especially after games like Genshin Impact). |
| /storage/emulated/0/MIUI/debug_log | Logs of system errors | โ Yes. | You can remove it completely, but it will be created again the next time it fails. |
| /storage/emulated/0/Download | Downloads from the browser | โ ๏ธ Partially. | Check manually โ there may be important documents |
| /storage/emulated/0/DCIM/.thumbnails | Photo miniatures | โ Yes. | Remove and Restore Automatically |
Never manually delete /data/dalvik-cache and /system folders, which will cause system failure and require flashing through Fastboot.
๐ก
To see hidden folders in Mi File Explorer, click on the three dots in the upper right corner โ โShow hidden filesโ.
3. Cleaning through ADB: for advanced users
If the built-in methods don't work, and manual cleaning is too time-consuming, you can use ADB (Android Debug Bridge), which removes the system cache that is not available through the normal interface.
You'll need:
- ๐ฅ๏ธ Computer with Windows/macOS/Linux
- ๐ Cable USB (preferably original)
- ๐ฑ Included debugging by USB on the phone (Settings) โ The phone. โ Version. MIUI โ 7 times to tap โ return to โ For developers โ Debugging by USB)
Steps for cleaning:
- Download ADB Tools and unpack it into a folder.
- Connect the phone to the PC, select File Transfer mode.
- Open the command line in the ADB folder and do:
adb shell
pm clear com.miui.cleanmaster # Cleanup of the Cleanup app
rm -rf /data/local/tmp/* # Delete temporary files
rm -rf /cache/* # Clean up the update cache
exitโ ๏ธ Note: The pm clear command will reset the app settings and rm -rf It will permanently delete files. Do not use these commands for folders not specified in the instructions!
What if the ADB canโt see the device?
4. Removal of duplicate photos and screenshots
One of the most annoying things about MIUI is that it automatically duplicates photos, and it's because of:
- ๐ Sync with Mi Cloud (creates copies with prefix "MIUI_")
- ๐ธ Processes in the Gallery appendix (saves the original) + edited)
- ๐ฑ Moving files between folders (sometimes) MIUI copy instead of moving)
How to find and remove duplicates:
- Open Gallery โ Albums โ Duplicates (if there is no such section, use third-party applications such as Duplicate Files Fixer).
- Sort by date โ takes are usually created with a difference of a few seconds.
- Delete all files with type names: IMG_20231015_123456_1.jpg (duplicate) MIUI_IMG_20231015_123456.jpg (cloud-like) Screenshot_20231015-123456_1.png (screenshot)
5.Storage optimization: what can be transferred to a memory card
If your Xiaomi supports microSD cards (such as the Redmi Note 11 or POCO X4 Pro), you can transfer some of the data to an external drive.
- ๐ต Music and video: transfers seamlessly through any file manager.
- ๐ท Photos: The Gallery has a function to move to SD-map, but it works crooked - it is better to copy manually.
- ๐ฎ Games: only if the game supports the installation of SD (Check the game settings).
- โ Annexes: MIUI does not allow the application to be transferred to SD without root rights (unlike pure Android).
How to transfer data correctly:
- Format the card as either Internal Memory (if you want to store applications) or Portable (if only media files).
- Use Mi File Explorer: Select files โ More. โ Move it โ Choose. SD-map.
- For photos: Open the Gallery โ highlight โ Management โ Move it to SD-map.
โ ๏ธ Note: If you are formatting SD-It's like internal memory, it can't be retrieved without losing data, and it can slow down your phone if it's in the lower class. UHS-I (U3).
๐ก
Memory cards below A1 (or U1) are not suitable for use as internal memory, they are too slow for applications.
6.Cache reset in Recovery Mode: A last resort
If the phone is slowing down and the memory is full, it helps to reset the cache through recovery mode.
- ๐๏ธ Temporary files of all applications
- ๐ Cash updates. MIUI
- ๐ฑ Remains from old firmware
Instructions:
- Turn off the phone.
- Press the Power button + Volume up until the Mi logo appears.
- In the Recovery menu, select the language (swipe down/up).
- Go to Wipe & Reset โ Wipe Cache.
- Confirm the action and wait for the completion.
- Reboot the phone (Reboot) โ Reboot to System).
โ ๏ธ Warning: Do not confuse Wipe Cache with Wipe Data! The second option will delete all your data (photos, contacts, apps) and return the phone to factory settings.
๐ก
If you've cached it, it takes a long time to load, it's okay, it recovers the files you need, and you can wait 5 to 10 minutes.
7. Prevention: How to prevent memory clogging
To avoid cleaning your phone every month, follow these rules:
- ๐ต Turn off auto-update apps in Google Play: Settings โ Network preferences โ Auto-update of applications โ Never.
- ๐ฅ๏ธ Set up Mi Cloud: Turn off the original photo download (Settings) โ Xiaomi account โ Mi Cloud โ gallery โ Quality of loading โ Saving traffic).
- ๐๏ธ Clear your browser cache once a week: in Chrome or Mi Browser go to Settings โ Confidentiality โ Clear the data.
- ๐ฅ Use the "Lite" versions of applications (Facebook Lite, Messenger Lite, Twitter Lite) - they take up 2-3 times less space.
It is also useful to set up automatic cleaning:
- Open Settings โ Applications โ Cleaning โ Settings (cogs).
- Turn on Auto Cleanup and set a schedule (e.g. every Sunday).
- Activate the Deep Clean option (remove the cache of system applications).
๐ก
Regularly cleaning your browser cache can free up to 1-2 GB per month, especially if you watch videos frequently or open heavy websites.