Cleaning up system memory on Xiaomi: a complete guide to MIUI 12-14

Why memory is clogged on Xiaomi smartphones and how to fix it

System memory on Xiaomi, Redmi and POCO smartphones is one of the most common causes of brakes, sudden reboots and app installation errors. Even on 128GB and 256GB devices, users are faced with a notification โ€œNot enough memoryโ€, although it would seem that there should be enough free space. What is the matter?

The problem lies in the architecture of MIUI, Xiaomiโ€™s proprietary shell, which aggressively caches data, duplicates files to speed up work and creates hidden backups. For example, the Gallery app can store thumbnails of photos in three different folders, and Mi Video can cache previews of videos even after they are deleted, and this is added to temporary update files, system log files and debris from preinstalled services that cannot be deleted by standard means.

In this article, we will discuss 7 From basic (novice-level) to advanced (root-rights required), you will learn how to make room without resetting to factory settings, which files can be deleted without risk and which ones can be touched dangerously. MIUI, pre-existing 5-10 GB on devices with 64 GB of memory and why it is not visible in the standard file manager.

Method 1: Built-in cleaning in MIUI (without third-party software)

So, to start with, the simplest of tools that you already have in your smartphone, Xiaomi has built a few cleaning utilities into MIUI, but they often don't work well unless you know the nuances. Here's how to use them correctly:

  1. Clean up garbage via Security: Go to Settings โ†’ Applications โ†’ Security โ†’ Cleanup. Here the system will show the amount of "Junk Files" (app cache, temporary data) and "Unnecessary Files" (duplicates, large files). Click "Clean", but take your time - first check what will be deleted. For example, WhatsApp or Telegram cache is better cleaned manually (more on this below).
  2. Delete the cache of individual applications: Go to Settings โ†’ Apps โ†’ App management, select the right one (for example, Facebook or TikTok) and click โ€œClear cacheโ€. Attention: do not confuse with the โ€œClear dataโ€ button โ€“ this will delete all settings and accounts in the application!
  3. Storage optimization: In the same Security section, there is an option called Optimization, where MIUI suggests transferring rarely used applications to a memory card (if any) or archiving old files. The feature works curved on some models (for example, the Redmi Note 10 Pro), so it is better to use it carefully.

โš ๏ธ Attention: Built-in cleaning MIUI Often misses the most "greater" folders - for example, /MIUI/backup (backups of the system) or /Android/data (You'll have to clean them by hand (see method). 3).

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

Method 2: Manually clean through the file manager (hidden MIUI folders)

If the built-in tools didn't help, it's time to dig deeper. MIUI hides from the user several folders that can take up gigabytes of memory. To see them, you need any file manager with access to the root directory (for example, MiXplorer or Solid Explorer).

Here is a list of folders that can (and should) be cleaned:

  • ๐Ÿ—‘๏ธ /MIUI/backup โ€” System and application backups: You can delete everything except the last copy (if you need one).
  • ๐ŸŽฎ /Android/obb โ€” cache of games (such as Genshin Impact or Call of Duty Mobile) only if you are not playing these games.
  • ๐Ÿ“ท /DCIM/.thumbnails โ€” So you can clean it up, and it'll automatically regenerate.
  • ๐Ÿ“ฅ /Download/.temp โ€” Temporary download files. Often, there are under-quality files left.
  • ๐Ÿ”„ /MIUI/extra โ€” duplicate files created by MIUI For quick access, remove without fear.

โš ๏ธ Attention: Don't touch the folders /system, /vendor or /data/app โ€” Also, don't delete files with the.odex or.vdex extension - they are needed for the applications to work.

โ˜‘๏ธ What can be safely removed manually

Done: 0 / 5

If you're not sure what to delete, use Files by Google, which analyzes memory and only offers safe files to be cleared, but it doesn't see some MIUI system folders, so combine both methods.

Method 3: Clean up the update cache and log files (for experienced ones)

Xiaomi is actively updating its devices, but each update leaves behind a "tail" - temporary files that should have been deleted automatically, but were left lying dead weight. /cache can weigh up 1-2 GB, and the log files in /data/log โ€” still.

To clean them up:

  1. Open a file manager with root access (such as Root Explorer).
  2. Go to /cache and delete all content (this is safe, the system will restore the files you need the next time you turn on).
  3. Then go to /data/log and delete files with the.log or.txt extension (these are error logs and system reports).
  4. If you have a /data/miui/backup folder, check it out โ€“ old backups from Mi Cloud may be there.

โš ๏ธ Note: If you don't have root rights, don't try to get them for this cleanup - the risk of blocking the device is too high. ADB-commands (see Method 5).

Folder/fileSize (approximately)Can I remove it?Effects of consequences
/cache500MB - 2GBYes.The system will restore the necessary files when restarting
/data/log200 MB - 1 GBYes (except for current logs)Error reports for diagnosis may be missing
/MIUI/backup1 GB - 5 GBYes (except for the last copy)Loss of old backups
/Android/data/*/cache100MB - 3GBYes.Applications will be loaded longer at first launch

๐Ÿ’ก

Before cleaning /cache, restart the phone to recovery mode (press Power + Volume up) and select Wipe Cache Partition.This is safer than manual removal.

Method 4: Remove preinstalled applications (bloatwar)

Xiaomi likes to stuff its smartphones with pre-installed apps, from Mi Browser to Mi Pay to GetApps. Many of them can't be removed by standard means, but they take up space and run in the background, wasting memory. Here's how to get rid of them:

No root rights (disconnection):

  • ๐Ÿ”ง Go to Settings. โ†’ Annexes โ†’ Application management.
  • ๐Ÿ” Find an unnecessary app (such as Mi Music or Mi Video).
  • ๐Ÿšซ Click "Disable" (this will remove the updates and stop the background work).
  • ๐Ÿ—‘๏ธ Then clean its cache and data.

With root rights (complete removal):

  • ๐Ÿ› ๏ธ Install Titanium Backup or System App Remover.
  • ๐Ÿ” Find the app in the list and select "Delete".
  • โš ๏ธ Do not remove system services with the names com.android. or com.miui. MIUI!

โš ๏ธ Note: Deleting some applications (such as Mi Security or Mi Account) may result in loss of functionality, such as a fingerprint or push notifications. Before deleting, check if the application is dependent on an important function.

List of safe to remove Xiaomi apps
You can delete (if you don't use): com.miui.browser (Mi Browser) com.miui.video (Mi Video) com.miui.music (Mi Music) com.xiaomi.scanner (Mi Scanner) com.miui.weather2 (Weather) com.android.email (Email) com.miui.notes (Notes if you use Google) Do not delete: com.miui.security.center (Security) com.xia.xia.acroid) (Misetting) account (Missetting)

Method 5: Cleaning through ADB (without root but with PC)

If you don't have root rights but you have a computer, you can use ADB (Android Debug Bridge) for deep cleaning, which allows you to remove the cache of system applications and some hidden files that are not available through standard settings.

Instructions:

  1. Download ADB Tools and unpack it on PC.
  2. On the phone, turn on Developer Mode (7 times click on MIUI Version in Settings โ†’ About Phone).
  3. Turn on "Debugging by" USB" In Settings โ†’ Additionally. โ†’ For developers.
  4. Connect your phone to your PC and type in the command line: adb shell pm list packages -f | find "miui" This will show a list of Xiaomi system applications.
  5. To clear the cache of a particular application (e.g. com.miui.gallery), type: adb shell pm clear com.miui.gallery

โš ๏ธ Note: Do not use the adb shell pm uninstall command for system applications โ€“ this can break down MIUI. Limit to cleaning the cache (pm clear).

To clean the cache of all applications, use:

adb shell pm trim-caches 9999G

This command will force the system to release the maximum possible amount of cache.

๐Ÿ’ก

ADB is the safest way to clean deep, root-free, and it doesn't require unlocking the bootloader, and it doesn't violate the warranty.

Method 6: Reset to factory settings (last resort)

If all previous methods failed and there is critically little free memory (less than 1 GB), there is a hard reset that will remove all data, apps and settings, returning the phone to the โ€œout of the boxโ€ state.

How to do the reset correctly:

  1. Save all important data (photos, contacts, messages) on your PC or in the cloud.
  2. Go to Settings โ†’ About the phone โ†’ Reset settings.
  3. Select โ€œErase All Dataโ€ (not โ€œResetโ€ โ€“ this will only delete settings, not files!).
  4. Confirm the action and wait for the reboot (it will take 5-10 minutes).

โš ๏ธ Warning: After reset, do not restore data from backup MIUI โ€” It may contain the same junk files that clogged the memory earlier. Better transfer the data selectively (photos, contacts) through a PC or Google Account.

If the memory is quickly exhausted after reset, the problem may be a faulty flash memory (especially on older Redmi 4X, Redmi Note 5 models), in which case only replacing the memory module in the service center will help.

Method 7: Optimize memory to prevent filling

To prevent your memory from getting clogged so quickly, follow these tips:

  • ๐Ÿ“ฑ Turn off automatic app updates on Google Play โ†’ Settings โ†’ Auto-update. Manually update once in a while. 1-2 weekdays.
  • ๐Ÿ“ธ Set up a photo backup in Google Photos with the originals deleted after downloading.
  • ๐ŸŽฎ Limit the cache of games in the settings (for example, in Genshin Impact you can reduce the cache size in the game settings menu).
  • ๐Ÿ”„ Clean up downloads regularly - folder /Download Often gets clogged with unnecessary files.
  • ๐Ÿšซ Do not use "memory cleaners" from the Play Market (such as Clean Master or CCleaner.

It is also useful to disable the background work of unnecessary applications:

  1. Go to Settings โ†’ Applications โ†’ Permissions โ†’ Autorun.
  2. Turn off auto-runs for social media, games, and other resource-intensive applications.
  3. In Settings โ†’ Battery โ†’ Select the mode to enable "Saving charge" - this will limit background activity.

๐Ÿ’ก

Regular optimization (once in a year) 1-2 It prevents the accumulation of garbage. It is enough to clean the application cache and folder. /Download, so that memory is not clogged.

FAQ: Frequent questions about memory cleanup on Xiaomi

๐Ÿ” Why does memory stop quickly after cleaning up?
This is due to background MIUI processes that recover cache and temporary files. To slow down the process: Turn off Adaptive Brightness and Smart Assistance in settings. Limit application background work (see Method 7). Install Greenify to freeze unnecessary services.
๐Ÿ“ฑ Can applications be transferred to the memory card?
On most Xiaomi models (except flagships with the UFS 3.1) only part of the applications can be transferred. UHS-I Class 10. Go to Settings โ†’ Annexes โ†’ Select the application โ†’ Warehouse โ†’ Change. โ†’ Map. SD. Restriction: Not all apps support portability (such as WhatsApp or Banking apps). โš ๏ธ Warning: Moving to a memory card can slow down an application, especially if the card is slow.
๐Ÿ”ง How to check what exactly is taking up memory?
Use the DiskUsage or Storage Analyzer app from Play Market. They show: Large files (>100MB) folders that take up the most space (e.g. /Android/data). Photo and video duplicates. Also in Settings โ†’ Storage โ†’ MIUI analysis shows the distribution of memory by category (applications, photos, system, etc.).
๐Ÿ› ๏ธ What to do if cleaning does not help and the phone slows down?
If all the manipulations still run out of memory, you can: Flash memory malfunction (especially on older Redmi 3/4 models). Check memory health through ADB: adb shell dumpsys diskstats If there are errors (bad blocks), contact the service. Virus or malware. Scan your phone through Malwarebytes. Too much user data (for example, 100+ GB photos in DCIM).
๐Ÿ“ฒ Can I clean my memory without losing data?
Yes, if you use selective cleaning: Clean the app cache manually (see Method 1). Remove garbage via Files by Google or SD Maid. Transfer photos and videos to your PC or Google Photos. Use ADB to clean the system cache (see Method 5). Avoid "magic buttons" like "Clean All" in optimizer applications - they often delete the necessary data.