Xiaomiโs internal memory has a nasty twist: even with the few apps installed, it gets littered in a matter of months, owing to the aggressive MIUI caching policy, background activity of system services and hidden update files. If your Redmi Note 12 or POCO X5 has started issuing space shortage notifications and photos have stopped being saved, itโs time to act.
In this article, we will discuss 7 proven methods of cleaning memory, from basic (deleting cache and unnecessary files) to radical (reset to factory settings). Particular attention will be paid to hidden MIUI folders, which take up gigabytes but are not displayed in the standard file manager. All instructions are relevant for devices on MIUI 14/15 and HyperOS, including the Xiaomi 13T, Redmi Note 11 Pro and POCO F5 models.
1. Analysis of occupied space: what exactly eats memory?
Before you delete files at random, you need to figure out which data is the lion's share of memory. MIUI has a built-in tool for this, Settings โ Memory. Here, the system shows the categorization of applications, media, system files and cache. However, this data is often unreliable โ for example, a.MIUI folder with backups can weigh 5-10 GB, but not show up in the statistics.
For accurate analysis, use third-party utilities:
- ๐ Files by Google โ Shows Hidden Files and Offers to Clear Duplicates.
- ๐ SD Maid (requires root) โ scans system folders, including /data/log and /cache.
- ๐ Storage Analyzer โ visualizes occupied space in the form of a diagram.
Pay attention to the following memory eaters:
- ๐ฅ folder DCIM/Thumbs โ Photo and video miniatures (can weigh up to a maximum of two) 1โ2 GB).
- ๐ฆ APK-file /Download โ leftovers of manually installed applications.
- ๐ Update files in /MIUI/OTA โ old firmware (up to) 3โ4 GB).
- ๐ค Google Play Services cache can grow to 500 MB-1 GB.
โ ๏ธ Attention: Do not delete the folder /MIUI/backup manually, this will cause a system recovery failure. โ Memory. โ Backup copies.
2. Cleaning the application cache and system
Cache is a temporary file that speeds up applications but eventually turns into digital garbage. In MIUI, the cache is divided into two types:
- Cache of user applications (for example, Instagram or Telegram).
- Cache system services (including Google Play Services and MIUI Launcher).
To clear the cache of a separate application:
- Go to Settings โ Applications โ Application Management.
- Select an app (such as YouTube).
- Press Warehouse. โ Clear the cache.
For mass cleaning, use:
- Settings โ Memory โ Cleaning (includes โCashโ).
- Check the unneeded apps and click Clear.
The system cache (/cache) is cleared through the recovery mode:
- Turn off your smartphone.
- Press Volume Up + Power before the MIUI logo appears.
- Select Wipe โ Wipe Cache Partition (control โ volume buttons).
Remove the cache of unnecessary applications|Check the folder size /cache|Do not touch the cache of system services manually|Restart the phone after cleaning-->
โ ๏ธ Attention: Clearing the cache of Google Play Services may lead to login errors in Google services. If Gmail or YouTube stop working after the procedure, restart the device.
3. Removal of unnecessary applications and their residues
Even after removing the application through Settings โ Applications on the smartphone remain:
- ๐ Folders with data in /Android/data and /Android/obb.
- ๐ Symbolic references to /data/app.
- ๐ Configuration files in /data/data.
To remove them completely, use ADB (you need to enable USB debugging in Settings โ About Phone โ MIUI version):
adb shell pm uninstall -k --user 0 com.example.app
adb shell pm clear com.example.appTo remove system applications (such as Mi Video or Mi Music) by mass, use App Inspector (available on Google Play) to show which applications can be safely uninstalled without any system consequences.
| Annex | File with the leftovers | Is it safe to remove? |
|---|---|---|
| /Android/data/com.facebook.katana | Yes. | |
| Mi Browser | /Android/data/com.android.browser | Yes (if you use Chrome) |
| Google Play Movies | /Android/data/com.google.android.videos | Yes. |
| MIUI Security | /data/data/com.miui.securitycenter | No (risk of failure) |
๐ก
Before you uninstall system applications, back up your Settings โ Additional โ Backup and Reset. This will allow you to restore them in case of errors.
4. Optimization of multimedia: photos, videos and music
Photos and videos in 4K resolution take up to 50-100 MB each, and music tracks - 5-10 MB.
- ๐ธ Compress photos via Google Photos (settings) โ "Make room").
- ๐ฅ Reduce video resolution with Video Compress (up to) 720p economy).
- ๐ต Transfer music to a memory card or to the cloud (Yandex Music, Spotify).
To automate the process, use the โWaste Cleanupโ function in MIUI:
- Go to Settings โ Memory โ Cleanup.
- Select the Multimedia tab.
- Tick boxes for unnecessary files (duplicates, screenshots, uploaded memes).
The hidden memory eaters:
- ๐ธ.thumbnails folder - thumbnails of photos (up to 1 GB) Delete it via Files by Google.
- ๐ฌ Cash. TikTok/Instagram โ Videos saved for offline viewing (folder) /Android/media/com.zhiliaoapp.musically).
- ๐ฎ Screenshots from the games are automatically saved to /Pictures/Screenshots.
How do I get my deleted photos back?
5. Clean Update Files and Backups
Xiaomi stores firmware files in /MIUI/OTA and backups in /MIUI/Backup. This data can take up to 5-10 GB, but it is dangerous to manually delete them.
To remove old firmware:
- Go to Settings โ About the phone โ System update.
- Click on the three dots in the top right corner and select Remove downloaded packets.
To clean up backup copies:
- Open Settings โ Additional โ Backup and Reset.
- Choose backup management and remove unnecessary ones.
If these methods do not work, use ADB:
adb shell rm -rf /sdcard/MIUI/OTA/*
adb shell rm -rf /sdcard/MIUI/Backup/AllBackup/*โ ๏ธ Note: Removing files from /MIUI/OTA If your smartphone is in the process of installing the firmware, wait until it is completed.
6. factory reset: when nothing helps
If after all the manipulations of the free space is less than 10%, and the system slows down, it is time to do a hard reset.
- ๐ฑ Applications and their settings.
- ๐ Personal files (photos, videos, documents).
- ๐ Google and Mi accounts.
Step-by-step:
- Create a backup through Settings โ Additional โ Backup and Reset.
- Go to Settings โ About the phone โ Reset settings.
- Choose to erase all data and confirm the action.
- After the reboot, set up your smartphone as new.
Alternative method (through recovery mode):
- Turn off the phone.
- Press Volume up + Nutrition.
- Choose Wipe Data โ Wipe All Data.
๐ก
Factory reset is a last resort, and before the procedure, check if the memory filling is due to a virus (e.g. Shamoon or Loapi) that creates thousands of hidden files.
7.Prevention: How to prevent memory filling
To prevent the problem from recurring, set up your smartphone according to these rules:
- ๐ฒ Turn off auto-update apps in Google Play (settings) โ "Auto-update").
- ๐ท Configure saving photos to the cloud (Google Photos or Mi Cloud).
- ๐ Limit the cache for social networks (in settings) Facebook/Instagram Select "Clear the cache when you exit").
- ๐ฅ Reconfigure the downloads to the memory card (settings) โ "Warehouse โ Default location").
For advanced users:
- ๐ ๏ธ Install Magisk and module SD Maid for automatic garbage cleaning.
- ๐ Use Tasker to create a weekly cache cleaning task.
- ๐ Block background activity of unnecessary apps through Settings โ Battery โ Energy saving regime.
If your smartphone supports memory expansion (for example, Redmi Note 12 Pro+ with a microSD card slot), transfer the media and some applications to it.
- Insert a memory card (recommended class - UHS-I).
- Go to Settings โ Storage โ SD card.
- Select Format as internal memory (Warning: The card will be tied to the device!).