How to completely clear the cache of all applications on Xiaomi Redmi: from standard methods to hidden features

The app cache on Xiaomi Redmi smartphones is a temporary file that helps programs load and run faster. However, over time, they accumulate, take up precious space in memory and can even slow down the device. If your Redmi Note 12, Redmi 10 or other model started to slow down, and in the Storage section you see gigabytes of busy Other Files, it's time to clean up.

In this article, we will analyze all possible ways to clean the cache - from standard tools. MIUI up to hidden functions and commands ADB. You will learn how to remove the cache selectively (for individual applications) or massively (for all programs at once), as well as what to do if the system does not allow you to clean some files. MIUI 12 before MIUI 14 Android-based 13/14.

Why the cache needs to be cleaned and when it really helps

Cache is not garbage, it's useful data that speeds up the re-launch of apps. For example, when you open Instagram, it saves thumbnails of photos so that it can be displayed instantly the next time.

  • ๐Ÿ“‰ Phone slows down โ€“ apps take a long time to open, animations twitch, although free memory is enough.
  • ๐Ÿ—‘๏ธ "Memory is filled" - in the storage settings you see that 5-10 GB is occupied by "Other Files" or "Cache".
  • ๐Ÿ”„ Apps are buggy โ€“ for example, YouTube constantly reloads videos or Google Maps shows outdated data.
  • ๐Ÿ”’ After updating MIUI โ€” New firmware versions sometimes conflict with old cache files.

But there is a downside: after cleaning the cache, applications will run longer until new temporary files are accumulated, and some programs (for example, Spotify or Yandex.Music) can lose offline cached tracks.

โš ๏ธ Note: Do not confuse the app cache with the dalvik-cache (system cache of the Android virtual machine). its cleaning requires root rights and can lead to system failure!

๐Ÿ“Š How often do you clean your Xiaomi cache?
Once a week.
Once a month
Only when the phone is slowing down.
Never cleaned.

Method 1: Standard cache cleaning for individual applications

The easiest and safest method is to remove the cache for specific programs through the settings menu.This will not delete your data (such as WhatsApp messages or save in games), but will free up space.

Instructions for MIUI 12/13/14:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select the desired application (for example, Facebook or TikTok).
  3. Press Warehouse. โ†’ Clear the cache.
  4. For a complete cleanup (including app data), choose Clear all data, but remember: this will delete accounts, settings and progress!

If the Clear Cache button is inactive, the application has not created cache files (or they have already been deleted).

โ˜‘๏ธ Preparation for mass cache cleaning

Done: 0 / 4

Method 2: Mass cleaning the cache of all applications through "Optimization"

MIUI has a built-in tool to cache all user applications simultaneously, faster than going through each application alone, but without affecting system processes.

How to do this:

  1. Open the Security app (shield icon).
  2. Go to the Optimization section โ†’ Deep cleaning.
  3. Click Clear the cache (usually the button is located at the bottom of the screen).
  4. Confirm the action if a request appears.

This method removes the cache only for third-party applications (installed by the user). System applications (Settings, Phone, Messages) will remain intact. ADB.

Cleaning methodWhat's removedAre root rights required?Implementation time
Manual cleaning for each applicationCache of selected applicationsNo.5-15 minutes
"Deep cleaning" in the Security appCache of all user applicationsNo.1-2 minutes
Pm clear command via ADBCache and data of the selected packageNo (but you need a PC)3-5 minutes
MIUI Optimizer (Hidden Function)Cache of all applications + system debrisNo.2-3 minutes
Cleaning up through TWRP RecoveryCache of all applications + dalvik-cacheYes.5-10 minutes

๐Ÿ’ก

If the app gets worse after cleaning the cache (for example, Google Chrome loads pages for a long time), try restarting the phone.

Method 3: Hidden MIUI Optimizer feature for deep cleaning

Xiaomi hides from users the powerful tool MIUI Optimizer, which allows you to clear the cache of all applications at once, including system ones. This method works without root, but requires activation through the menu for developers.

Step-by-step:

  1. Activate Developer Mode: Go to Settings โ†’ About Phone. Click 7 times on the MIUI Version until the notification "You've become a developer" appears.

Settings โ†’ Additional โ†’ For Developers

MIUI Optimizer

Security โ†’ Optimization

Deep cleaning of the system

This method removes the cache of even those applications that are not normally cleared through standard settings (for example, com.miui.home โ€“ MIUI launcher). However, after the procedure, the phone can restart, and some widgets โ€“ reset.

โš ๏ธ Note: Some models (Redmi Note 11 and later) have an option MIUI Optimizer may not be on the developer menu. ADB (4).

Method 4: Cleaning the cache through ADB (for power users)

If standard methods donโ€™t work and MIUI Optimizer isnโ€™t available, you can use Android Debug Bridge (ADB), which requires connecting your phone to your computer, but allows you to clear the cache of any application, including system ones.

What you need:

  • ๐Ÿ–ฅ๏ธ A computer with installed Xiaomi drivers and ADB (download).
  • ๐Ÿ“ฑ Initiated debugging mode USB on the phone (Settings) โ†’ For developers โ†’ Debugging by USB).
  • ๐Ÿ”Œ Cable USB Type-C (preferably original).

Instructions:

  1. Connect the phone to the PC and allow debugging (a request will appear on the phone screen).
  2. Open the command prompt (cmd) in the folder with ADB.
  3. Enter the command to check the connection: Adb devices must appear serial number of your device.
  4. To clear the cache of all applications, run: adb shell pm trim-caches -1 This command will remove the cache of all user and system applications, except for mission-critical files.
  5. To clear the cache of a particular application (e.g. Facebook): adb shell pm clear com.facebook.katana Replace com.facebook.katana with the desired application package (you can find it through adb shell pm list packages).

ADB has the advantage of clearing the cache even for applications that donโ€™t show up in the settings menu (e.g. com.xiaomi.mipicks or com.android.providers.media). However, donโ€™t use the pm clear command for system packages (e.g. com.android.phone) unless youโ€™re sure of the consequences!

What if the ADB canโ€™t see the device?
1.Make sure USB debugging is enabled and you have given permission to the PC. 2. Try another cable (cheap cables often don't support data transfer). 3. Install Xiaomi drivers manually through Windows Device Manager. 4. Restart your phone and PC. 5. If you use Mac/Linux, check port rights: sudo chmod 666 /dev/ttyUSB*

Method 5: Cleaning the cache through Recovery (TWRP or stock)

If the phone is slow and doesn't respond to commands, you can clear the cache through recovery mode, which is suitable for devices with an unlocked bootloader and TWRP installed, but partially works in drain Recovery.

For stock recovery (no root):

  1. Turn off the phone.
  2. Press the Power button + Volume up until the MI logo appears.
  3. Choose your language (if required).
  4. Go to Wipe & Reset โ†’ Wipe Cache.
  5. Confirm the action and wait for the completion.
  6. Reboot your phone (Reboot โ†’ System)

For TWRP Recovery (requires an unlocked bootloader):

  1. Download to TWRP (similar to drain recovery).
  2. Select Wipe โ†’ Advanced Wipe.
  3. Check the boxes Cache and Dalvik/ART Cache.
  4. Swipe to Wipe (Swipe to Wipe) with your finger.
  5. After completion, press Reboot System.

โš ๏ธ Attention: Cleaning Dalvik Cache in TWRP This will result in a longer first load (up to the end) 5-10 Don't interrupt the process!

๐Ÿ’ก

Clearing the cache through Recovery does not delete user data, but resets some system settings (such as application rights or background processes).

What to do if the cache is not cleared: common problems and solutions

Sometimes, even after all the manipulations, the cache stays in place, or the system gives out errors.

  • ๐Ÿšซ "Failed to clear the cache" โ€” try: "Reboot the phone. Clear the cache through ADB (Remove updates to the problem application (Settings) โ†’ Annexes โ†’ โ‹ฎ โ†’ Remove updates).
  • ๐Ÿ”„ Cache comes back after cleaning - the fault is an app that actively caches data (e.g. Google Play Services).Solution: Limit the background activity of the app (Settings) โ†’ Annexes โ†’ Battery โ†’ Background Activity: Turn off Auto Update for this app on Google Play.
  • ๐Ÿ”’ The system application does not allow you to clear the cache - use: ADB App Inspector (requires root) with pm clear command).

If no method has worked, maybe the problem isn't cache, but memory fragmentation or damaged partitions.

  • ๐Ÿ“ฑ Reset to factory settings (save data!).
  • ๐Ÿ”ง Fastboot flashing (if the phone is warranty, it will cancel it).

FAQ: Frequent questions about cleaning cache on Xiaomi Redmi

โ“ Can I clear the cache without losing application data?
Yes, cache clearing (Clear Cache in the App Settings) does not affect user data (messages, photos, saves in games). However, if you choose Clear all data, all content of the application will be deleted!
โ“ Why After Cleaning the Cache, the Phone Started to Slow Down?
This is a temporary phenomenon. After cleaning the cache, the system and applications are forced to recreate temporary files, which requires additional resources. After 1-2 days, the work is stabilized. If the brakes are left, check the phone for viruses or memory fragmentation.
โ“ How often should the cache be cleaned?
The optimal frequency is once every 1-2 months, or when free memory becomes less than 1-2 GB. Frequent cleaning (for example, once a week) will not bring benefits, but only make applications constantly recreate the cache.
โ“ Can I clean the cache for all system applications without root?
Yes, with ADB (method 4) or the hidden MIUI Optimizer (method 3). However, some system applications (e.g. com.android.phone) may require a reboot or even a reset after cleaning.
โ“ Why in the storage settings cache takes 0 bytes, but the phone slows down?
In MIUI, cache is often counted under "Other Files" or "System Data" and for accurate diagnosis, use applications like Files by Google or SD Maid (requires root for deep analysis), and brakes can be caused by overheating, background processes or viruses.