Xiaomi's cache is a temporary file that creates fast-paced applications that accumulate over time, take up precious space in memory, and can slow down the device. But where exactly to look for this data and how to safely delete it so as not to harm the system? In this article, we'll look at all the possible ways to clean the cache, from standard MIUI tools to hidden features for power users.
It's important to understand that there are two types of cache: app cache (accelerates the launch of programs) and Dalvik cache (system files for Android optimization). Cleaning the first type is usually safe, and with the second one you need to be careful - removing it can lead to temporary lags after a reboot, we will show you how to work with both types without risking the stability of the phone.
If your Redmi Note 12 or POCO X5 is slowing down and the memory is full of unknown things, this guide will help to return the device to performance. All methods are tested on the latest versions of MIUI 14/15 and are relevant for models from Xiaomi Mi 11 to the budget Redmi A2.
1. Standard cache cleaning through MIUI settings
The easiest way is to use the built-in tools, which is for beginners and doesn't require superuser rights.
- Open Settings โ Memory (or Storage on some firmware).
- Slip on the item Clean at the bottom of the screen.
- Select Cache Data and confirm the action.
The system will show how much space will be freed up. Usually it is from 500 MB to 2-3 GB, depending on the number of applications installed. On models with a Snapdragon 8 Gen 2 chip (for example, Xiaomi 13 Pro), the cache can take up to 5 GB due to the optimization of gaming applications.
๐ก
After clearing the cache through the settings, restart the phone โ this will speed up the re-creation of temporary files for frequently used applications.
- โ Quickly and without risk to the system
- โ No need for additional programs
- โ ๏ธ Deletes only app cache without affecting Dalvik
- โ ๏ธ Does not clear the cache of system services (e.g. com.miui.home)
2. Manual cache removal for individual applications
If you only need to clear the cache for specific programs (for example, TikTok or YouTube take up too much space), use this method:
- Go to Settings โ Applications โ Application Management.
- Select the appropriate app (such as Facebook).
- Slip the vault. โ Clear the cache.
For some applications (such as Google Play Services), the cache clearing button may not be active, which is normal โ system services block manual deletion of temporary files.
| Annex | Average cache size | Can we clean it? |
|---|---|---|
| 300-800MB | Yes. | |
| Google Chrome | 150-500MB | Yes. |
| MIUI Launcher | 50-200 MB | No (systemic) |
| 200-1 GB | Yes (but the media files will be saved) |
Close the application through the latest task menu
Check if it is used in the background.
Make a backup of important data (for messengers)
Do not clear the cache of system applications named com.miui.
-->
On some firmware (e.g. MIUI Global), after cleaning the cache, the application may temporarily run slower, which is normal.
3. Clearing Dalvik cache via Recovery Mode
For power users who want to optimize the system deeply, there is a method to clean the Dalvik cache through recovery mode, which helps when the phone starts to brake after the MIUI update.
Warning: Don't confuse Dalvik cache with the regular app cache. The former is responsible for speeding up Java code execution in Android, and deleting it will cause the system to recompile all applications the next time it runs. This can take 5-15 minutes.
- Turn off the phone.
- Press the Power button + Volume up until the Mi logo appears.
- From the Recovery menu, select Wipe & Reset โ Wipe Dalvik Cache.
- Confirm the action and restart the device.
What happens if you clean Dalvik cache incorrectly?
โ ๏ธ Attention: On models with Dynamic RAM Expansion (e.g. Xiaomi) 12T) Cleaning the Dalvik cache may temporarily disable this feature until the next reboot.
- ๐ง Eliminates lags after updates MIUI
- ๐ง Helps with an error "The application does not respond"
- โ ๏ธ Requires a restart (the first launch will take longer)
- โ ๏ธ Not recommended for beginners
4.Use of cleaning applications (CCleaner, SD Maid)
Third-party utilities offer more flexible cleaning settings, but require caution.
- ๐งน CCleaner โ simple interface, cleans cache and garbage
- ๐งน SD Maid โ advanced features for experienced users
- ๐งน Files by Google โ Built-in cleaning from Google
- ๐ซ Avoid Clean Master and the like โ they often show false threats
Example of working with SD Maid:
- Install the app from Google Play.
- Run the scan in the CorpseFinder section (search for the remaining files after deleting applications).
- Select SystemCleanup to clean the cache.
โ ๏ธ Note: Some "optimizers" (e.g., "optimizers, DU Speed Booster can delete important system files on Xiaomi, which will lead to malfunctions MIUI. Use only proven utilities.
On models with MIUI 14+, built-in memory optimization has become more efficient, so third-party cleaners often do not give a noticeable increase in performance.
Built-in tools MIUI|CCleaner|SD Maid|Files by Google|I'm not clearing the cache.|Other-->
5. Hidden methods: ADB and engineering menu
For advanced users who want to have full control of the process, there are hidden commands, and one way is to use ADB (Android Debug Bridge).
First, turn on USB debugging:
- Settings โ About the phone โ 7 times tap on the MIUI version.
- Back to Settings โ Additionally. โ For developers.
- Activate Debugging on USB.
Now connect your phone to your PC and execute the command:
adb shell pm trim-caches 1000000000This command will clear the cache of all apps that takes up more than 1 GB. To clear the cache of a particular app (e.g. Facebook):
adb shell pm clear com.facebook.katana๐ก
ADB commands allow you to clear the cache of system applications that are not available through standard MIUI settings.
Another hidden method is the engineering menu.
##4636##Go to Storage and select Clear cache. Be careful, you can accidentally reset other settings here.
6. Automatic cleaning: setting up MIUI Optimized
MIUI 13/14/15 has an integrated automatic optimization feature that can clear the cache in the background to configure it:
- Go to Settings โ Special features โ Memory optimization.
- Turn on the Auto Clean option.
- Choose frequency: Every day or when memory is low.
On models with UFS 3.1 (such as Xiaomi 13 Ultra), this feature works better due to the high read/write speed. On budget devices with eMMC (such as Redmi 10A), automatic cleaning can slightly slow down the system.
- โณ Saves time โ no need to clean manually
- ๐ Works in the background without user involvement
- โ ๏ธ Can remove cache too aggressively (for example, for gaming)
- โ ๏ธ On weak devices increases battery consumption
If you notice that applications are loading longer after you turn on automatic cleaning, turn off this feature and return to manual cleaning as needed.
7.What to do if the cache is not cleaned?
Sometimes users find that the cache clean button is inactive or the process is stalled.
| Problem. | Reason. | Decision |
|---|---|---|
| The "Clear Cache" button is grey. | The app is running in the background | Close it through the last task menu. |
| Cleanup's down 0%. | Damaged cache files | Restart your phone and try again. |
| Cash comes back immediately after cleaning. | The application is actively used | Limit background activity in battery settings |
| You can not clear the cache of the system application | MIUI restrictions | Use ADB or Recovery |
If none of the methods worked, try resetting the app settings (not to be confused with a full phone reset!):
- Go to Settings โ Applications.
- Select the problem app.
- Slip the vault. โ Reset the settings.
This will delete the cache and all application data (including logins), but save the program itself.