Xiaomi smartphones (including the Redmi, POCO and Mi series) eventually start to slow down due to crowded cache โ temporary files that accumulate when applications and the system work. If your phone becomes slower to respond to commands, often overheats or gives out errors like โNot enough memoryโ, the problem is likely to lie in the cache clogged. In this article, we will analyze all the ways to clean it, from standard MIUI tools to hidden functions for power users.
It's important to understand that there are three types of cache: application cache (program time data), Dalvik cache (system files of the Android virtual machine), and update cache (residual files after updates). Each of them requires a different approach. For example, cleaning the cache of the Telegram messenger will return several gigabytes of memory, and resetting Dalvik-cache will help get rid of lags after updating the firmware. We will look at methods for all cases, from simple to advanced, taking into account the features of the MIUI 14/13/12 shell.
1. Standard cache cleaning through Xiaomi settings
The safest and most recommended way is to use the built-in MIUI tools. This method is suitable for beginners and does not require super-user (root) rights. Cleaning through the settings menu removes only unnecessary temporary files without affecting important application data (logins, messages, media files).
To clear the cache of a separate application:
- Open Settings โ Applications โ Application Management.
- Choose the app you want (such as Chrome or Facebook).
- Press "Storage" โ "Clear the cache".
For mass cleaning of all applications:
- Go to Settings โ Memory (or โClean upโ depending on the version of MIUI).
- Click "Clean" in the "Junk Files" section.
- Confirm the action by selecting Cache (do not delete Downloads or Other Files unless you are sure of their contents!).
โ๏ธ What to do before cleaning the cache
Advantages of the method: safe, does not require additional programs, works on all Xiaomi models (from Redmi 4A to Xiaomi 14 Ultra).
2.Cache cleanup via Recovery Mode (for power users)
If the phone is slowing down after updating MIUI or installing custom firmware, a standard cleaning may not help, in which case resetting the cache through Recovery Mode will help, which removes Dalvik-cache, system files that are sometimes damaged during updates.
Instructions:
- Turn off your smartphone.
- Press the buttons Power + Volume up at the same time (on some models POCO - Power + Volume down).
- From the Recovery menu, select "Wipe & Reset" โ "Wipe Cache".
- Confirm the action and wait for the completion (it will take 1-3 minutes).
- Restart the phone (Reboot).
What happens if you drop the Dalvik-cache?
โ ๏ธ Warning: Don't confuse "Wipe Cache" with "Wipe Data"! The second option will completely reset your phone to factory settings, deleting all your files, photos and apps.
This method is especially useful after installing custom firmware (such as LineageOS or Pixel Experience) or if the phone gives an error "The application stops constantly." On models with MIUI 14 and later, Dalvik-cache can take up to 1.5 GB - cleaning it will free up space and speed up work.
3. Use of the built-in "Security" tool (Security)
The MIUI shell includes the proprietary Security app, which offers advanced cleaning features that not only remove cache, but also optimize autoload, close background processes, and scan the device for viruses, a method that is suitable for regular phone maintenance.
How to use:
- Open the Security app (the shield icon).
- Go to the "Cleaner" tab.
- Press "Deep Clean" and wait for analysis.
- Select "Cash" and "Residual Files", then click "Clean".
The advantage of this method is the ability to clean up โresidual filesโ (for example, undeleted data after uninstalling applications). On Xiaomi 13T Pro or Redmi Note 12 Pro+ models, the โSecurityโ tool also offers โgame accelerationโ for gamers, which further clears the cache of graphics processors (GPUs).
| Cleaning method | What's removed | Root is required. | Implementation time |
|---|---|---|---|
| Through settings | Cash app. | No. | 1-2 minutes |
| Recovery Mode | Dalvik-cache, system cache | No. | 3-5 minutes |
| Annex "Security" | Cash + residual files | No. | 2-4 minutes |
| ADB-team | Cache of all users | No (but you need a PC) | 5-10 minutes |
| Root applications (such as SD Maid) | Deep cleaning of system files | Yes. | 10+ minute |
4.Cache clearing via ADB (for advanced users)
If standard methods donโt work, you can use Android Debug Bridge (ADB), a tool for debugging through your computer, which allows you to clear the cache of all users (relevant for phones with multiple profiles) or reset the cache of system applications that are not normally available in the settings menu.
Step-by-step:
- Download and install ADB Tools on PC.
- Turn on USB Debugging on your phone: Settings โ About Phone โ MIUI version (click 7 times to activate Developer Mode), then go back to Settings โ Additional โ Developers โ Debugging on USB.
- Connect your phone to your PC and type in the command line: adb devices (your device should appear).
- Run the command to clear the cache of all applications: adb shell pm trim-caches 1000000000 or to reset the cache of a specific package (for example, Google Play Services): adb shell pm clear com.google.android.gms
โ ๏ธ Attention: pm clear removes all application data, including settings and logins! Use it only if the application is not working properly.
This method is useful if you want to clear the cache of system services (for example, Google Play Services or Google Play Services). MIUI Systems that take up hundreds of megabytes but donโt show up in a standard application manager. ADB It will help if the phone screen does not respond to touch, but USB-debugging was included in advance.
5. Automatically clean the cache with the help of a scheduler
To avoid manually clearing the cache, you can set up automatic cleaning through the Security app or third-party utilities like CCleaner. This is true for users who often install / remove programs or play heavy games (such as Genshin Impact or Call of Duty Mobile), where the cache can grow to 5-10 GB.
Automatic cleaning in MIUI:
- Open the Security" โ "Cleanup".
- Click on the three dots in the upper right corner and select Settings.
- Activate Auto Cleaning and set a schedule (e.g. once a week).
- Enable the option to "Clear Cache When Locking Screen" (available on MIUI 13+).
๐ก
If you play mobile games frequently, add them to the automatic cleanup exceptions. The game cache (like the texture in PUBG Mobile) can take up traffic up to 1-2 GB when reloaded.
For more flexible settings, use MacroDroid or Tasker, which allows you to create rules like โCache clear if your free memory is less than 1 GB.โ On POCO F5 or Redmi K60 models with a large amount of RAM (8-12 GB), automatic cleaning will help you avoid friezes in multitasking mode.
6. Clean up the MIUI update cache (hidden files)
After updating MIUI via OTA (over the air), temporary update files remain on the phone, which can take from 500 MB to 2 GB. They are stored in the /cache folder and usually not visible without root rights. However, they can be deleted through File Manager with the hidden file display mode enabled.
Instructions:
- Open the File Manager (File Manager).
- Go to Internal Memory โ cache (if the folder is not visible, turn on the display of hidden files in the Explorer settings).
- Delete files with the.zip extension or folder type ota_update_*.
- Also check the /data/miui/ota folder, as there may be old firmware in the folder.
On Xiaomi models with MIUI 14 and the newer update cache can be stored in the section /data/ota_package and borrow up 3 GB. Its removal is safe unless you plan to roll back on a previous firmware version.
โ ๏ธ Note: Do not delete files from the folder /system or /vendor โ This can lead to a phone blink! Only work with cache, download and folders. miui/ota.
If you update your firmware frequently through MIUI bootloader or Xiaomi Community, these files can accumulate for years. For example, on Xiaomi Mi 11, up to 4-5 GB of garbage can accumulate after 5 updates in the /cache folder.
7.Cache reset via Fastboot (extreme case)
If the phone has got stuck on the MI logo after a failed update or installation of the Magisk module, it may be necessary to clear the cache via Fastboot Mode.This method is more radical than Recovery and requires a connection to a PC.
What you need:
- ๐ฅ๏ธ Computer with Fastboot Tools installed (part of Platform Tools).
- ๐ Cable USB (preferably original).
- ๐ฑ Phone in Fastboot mode (clamp power supply) + Loudness down).
Cleanup commands:
fastboot erase cache
fastboot format:ext4 userdata # Only if you need to reset all data!
fastboot reboot๐ก
The command fastboot format:ext4 userdata will completely reset your phone! Use it only if other methods have not worked and you have a backup.
This is a useful method for โbricksโ (non-booting phones) after a failed firmware manipulation, for example, if the system does not start after installing TWRP or OrangeFox Recovery, cleaning the cache through Fastboot often solves the problem.