Why Xiaomi Phone Is Clogged With Garbage and How to Fix It
Xiaomi smartphones based on MIUI They're known for their functionality, but over time, even they start to slow down because of the accumulated unnecessary files, and the reasons for filling up memory are diverse, from automatic caching of applications to the remnants of remote programs that continue to take up space. This is especially important for models with 32/64 GB of internal memory, where every megabyte counts.
The manufacturer has integrated cleaning tools into the firmware, but they often work superficially. For example, the standard Cleanup feature in the Safety menu removes only temporary files, leaving duplicate photos, downloads from instant messengers and outdated system updates intact. Meanwhile, on devices with MIUI 13/14, up to 30% of memory can take up garbage that is not visible to the user through the standard file manager.
In this article, we will examine not only basic methods (like cleaning cache), but also hidden methods β from manual removal of system logs to use. ADB-All instructions tested on Redmi Note models 10/11/12, POCO X3/X4/X5 and flagships Xiaomi 12/13/14, But it is suitable for any device on MIUI.
1. Standard Cleaning through βSafetyβ: What Removes and What is Missing
The easiest way to free up space is to use the built-in Cleanup tool, which is available from the Settings menu β Security β Cleanup (or through a desktop widget).
- ποΈ Application cache β temporary files that programs create to speed up work, and deletion is safe, but they will recover the next application launch.
- π₯ Downloads are files from browsers, instant messengers (Telegram, WhatsApp) and mail. Often duplicates and outdated documents accumulate here.
- ποΈ Unnecessary APK β Remains of software installers that have long been removed.
- π Application residues β folders and files from uninstalled programs (e.g., WeChatβs com.tencent.mm if you deleted it).
However, this method has critical limitations:
β οΈ Note: Built-in cleaning does not remove system logs (/data/log), backups of updates (/cache), Google Play Services cache that can weigh up to 1-2 GB. She also ignores duplicate photos in the DCIM/.thumbnails and cache maps in Google Maps.
To make cleaning more efficient:
βοΈ Maximum cleaning through βSafety"
0
1. Start the analysis and mark all categories
2.Click "Deep Clean" (if available)
3. Go to Memory Management β Files and manually check Download, Bluetooth, Pictures/Screenshots folders
4. Delete files older than 3 months (use date sorting)
2. Manual deletion of hidden files: where to look for garbage in MIUI
For advanced users who are ready to dig through system folders, there is a way to free up 1-5 GB of extra space. You will need any file manager with access to root directories (such as MiXplorer or Solid Explorer). Open the Settings menu β Additional β Show hidden files.
Where to look:
| Folder/path | What it keeps. | Is it safe to remove |
|---|---|---|
| /data/log | System and application logs (up to 500 MB) | Yes, but they can recreate. |
| /cache | Cache updates and temporary recovery files | Yeah, it cleans up when you reboot. |
| Android/data/ (remote application folders) | Remains of data from uninstalled programs | Yes, if the application is removed |
| DCIM/.thumbnails | Photo miniatures (up to 1 GB) | Yes, they will recover when they see the photo. |
| /sdcard/MIUI/backup/AllBackup | System backups (up to 3 GB) | Unless you plan to restore it. |
A warning for MIUI 14 users:
The danger of removing system folders
The /system or /vendor folder stores critical firmware files, and deleting them will cause the device to blink (undownloadable). Also, don't touch files in /data/app, which are installed applications, and manually deleting them will disrupt the system. If in doubt, use ADB (see section 5).
3. Cleaning up Google cache and system applications
Even if you've never used Google Podcasts or Google Play Music, their cache can take hundreds of megabytes. The same goes for Mi Video, Mi Music and other Xiaomi apps pre-installed.
- Go to Settings β Applications β Application Management.
- Select the All tab and sort by size (click on the three dots in the upper right corner).
- Open any system application (such as Google Play Services) and click Clear Cache and Clear Data (if possible).
Pay particular attention to:
- π΅ Mi Music β caches album covers and previews of tracks.
- πΊ Mi Video - Stores video thumbnails and viewing histories.
- πΊοΈ Google Maps β Cache of cards can weigh up to 2 GB.
- π€ Android System Intelligence β Collects Data from Google Assistant.
You can use SD Maid to automate the process (require root rights for full functionality).
- π§Ή Remains of uninstalled applications.
- ποΈ Empty folders.
- π Duplicate files (including photos with the same content but different names).
4. Removal of duplicate photos and unnecessary media files
One of the biggest memory eaters is photos and videos, and on Xiaomi devices, duplicates appear because of:
- πΈ Automatic copy creation when editing in the Gallery MIUI.
- π Sync with Google Photos or Mi Cloud.
- π± File transfers by file Bluetooth/ShareIt (saved in Bluetooth or ShareIt folders).
To find and remove duplicates:
- Use the Files by Google app (the Cleanup tab β File Duplicates).
- In the MIUI Gallery, go to Albums β Screenshots and delete old screenshots.
- Check the DCIM/.thumbnails folder β it stores thumbnails that can be safely deleted.
For owners of POCO and Redmi with 128 GB of memory, the following advice is useful:
π‘
Set up automatic cleaning in Google Photos: go to Settings β Free up space. The app will prompt you to delete local copies of photos that have already been uploaded to the cloud (saving up to 10-15 GB).
Also, look at the Pictures/Screenshots folder, which can contain hundreds of unnecessary screenshots from instant messengers (Viber, WhatsApp) and games. Use date sorting and delete files older than 6 months.
5. ADB-Experienced teams: deep cleaning without root
If standard methods don't work and root rights don't, you can use ADB (Android Debug Bridge), which requires connecting your phone to a PC, but allows you to delete files that are not available through the normal interface.
What you need:
- π₯οΈ Computer with Platform Tools installed.
- π± Included debugging by USB (Settings β The phone. β Version. MIUI (press 7 times) β Additionally. β For developers β Debugging by USB).
- π Cable USB Type-C (preferably original).
Cleanup commands:
adb shell pm clear com.miui.cleanmaster # Clearing the cache of the Security app
adb shell rm -rf /sdcard/MIUI/backup/* # Removal of MIUI backups
adb shell rm -rf /data/local/tmp/* # Clearing temporary filesTo remove the cache of Google Play Services (can free up to 1 GB):
adb shell pm clear com.google.android.gms
adb shell pm clear com.google.android.gsfβ οΈ Note: pm clear will reset the application settings (e.g., in Google Play Services, this will lead to re-authorization in some services). -rf folder /system or /data/app β It'll cause the system to fail.
After you've completed the commands, restart your phone. Use:
adb shell df -h6.Memory optimization: how to prevent refilling
To prevent garbage from accumulating again, set up your phone according to these rules:
- π± Turn off automatic media download in messengers: WhatsApp: Settings β Warehouse β Autoboot Media (turn off for mobile data). Telegram: Settings β Data and memory β Autoload Media (select βNeverΒ»).
- ποΈ Set up automatic cleaning: In Settings β Battery and productivity β Clean up, turn on Auto Cleanup. In Files by Google, activate Alerts for Unnecessary FilesΒ».
- π Move the applications to SD-map (if supported): Settings β Annexes β Select an application β Warehouse β Change. β SD-map.
For models with 64 GB of memory and less, it is recommended:
- π¬ Use Google Photos in High Quality mode (unoriginal resolution) to automatically upload photos to the cloud.
- π΅ Store music in streaming services (Spotify, Yandex Music) instead of local files.
- π Regularly (every 2 months) transfer photos and videos to a PC or external drive.
π‘
The most effective way to prevent memory from filling is a combination of automatic cleaning (via "Security") and manual control of Download, DCIM and messenger cache folders.