Cleaning up Xiaomiโ€™s internal memory: from cache to deep optimization

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.

๐Ÿ“Š How often do you clean your memory on your smartphone?
Once a week.
Once a month
Only when the place ends.
Never.

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:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Select an app (such as YouTube).
  3. Press Warehouse. โ†’ Clear the cache.

For mass cleaning, use:

  1. Settings โ†’ Memory โ†’ Cleaning (includes โ€œCashโ€).
  2. Check the unneeded apps and click Clear.

The system cache (/cache) is cleared through the recovery mode:

  1. Turn off your smartphone.
  2. Press Volume Up + Power before the MIUI logo appears.
  3. 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.app

To 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.

AnnexFile with the leftoversIs it safe to remove?
Facebook/Android/data/com.facebook.katanaYes.
Mi Browser/Android/data/com.android.browserYes (if you use Chrome)
Google Play Movies/Android/data/com.google.android.videosYes.
MIUI Security/data/data/com.miui.securitycenterNo (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:

  1. Go to Settings โ†’ Memory โ†’ Cleanup.
  2. Select the Multimedia tab.
  3. 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?
If you accidentally delete important files, check the /MIUI/Backup/Recent folder, which has backed up your files for the past 30 days, and use DiskDigger or Recuva (root required).

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:

  1. Go to Settings โ†’ About the phone โ†’ System update.
  2. Click on the three dots in the top right corner and select Remove downloaded packets.

To clean up backup copies:

  1. Open Settings โ†’ Additional โ†’ Backup and Reset.
  2. 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:

  1. Create a backup through Settings โ†’ Additional โ†’ Backup and Reset.
  2. Go to Settings โ†’ About the phone โ†’ Reset settings.
  3. Choose to erase all data and confirm the action.
  4. After the reboot, set up your smartphone as new.

Alternative method (through recovery mode):

  1. Turn off the phone.
  2. Press Volume up + Nutrition.
  3. 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.

  1. Insert a memory card (recommended class - UHS-I).
  2. Go to Settings โ†’ Storage โ†’ SD card.
  3. Select Format as internal memory (Warning: The card will be tied to the device!).

FAQ: Frequent questions about Xiaomi memory cleanup

Can I delete the Android folder without consequences?
No, the /Android folder contains application data (including game saves). Deleting will cause malfunctions in the programs. Instead, clear the subfolders: /Android/data - cache and settings (can be deleted selectively). /Android/obb - additional game files (for example, textures for Genshin Impact).
Why does the memory re-energize in a few days?
The culprits are background MIUI and Google Services processes. Open Settings โ†’ Special Features โ†’ App Permissions and disable auto-run for unnecessary services (such as Mi Video or Cleaner). Also check if there are mining bots on the phone (they disguise themselves as system processes).
How to clear your memory if your phone is not switched on?
Connect your smartphone to your PC via USB and use ADB in recovery mode: adb shell rm -rf /data/local/tmp/* rm -rf /cache/* If ADB does not recognize the device, try flashing the smartphone through the Mi Flash Tool (instructions on the official Xiaomi website).
Is it safe to use apps like CCleaner?
Cleaning applications (such as CCleaner or Clean Master) often delete critical files or display false virus warnings. MIUI has enough built-in tools (Settings โ†’ Memory). If you want a third-party utility, choose Files by Google or SD Maid (the latter requires root).
How to transfer applications to a memory card?
Starting with Android 9, porting apps to microSD is limited.To get around this: Format the card as internal memory (settings) โ†’ storage โ†’ map SD). Use it. App2SD (requires root) for forced transfer. For games (e.g. Call of Duty Mobile), transfer only the cache through Settings โ†’ Annexes โ†’ Warehouse โ†’ Change. โš ๏ธ Attention: Class Memory Cards UHS-I Write speeds below 30MB/s can slow applications.