How to completely clear the cache on Xiaomi smartphones: 7 proven ways

Xiaomi’s MIUI or HyperOS-based smartphones eventually slow down due to crowded cache β€” temporary files that the system and apps accumulate to speed up work. But when those files become too many, they take up precious memory space and slow down the device. Clearing the cache can bring the phone back to its previous speed, free up gigabytes of memory and even solve overheating problems.

In this article, you'll find 7 ways to clean up cache, from standard MIUI tools to hidden features for power users, how to remove individual applications' cache, system debris, and the dangerous but effective method of resetting Dalvik-cache. Importantly, some operations require super-user rights, but most are available without them.

Before you start, check how much cache your Xiaomi has. Go to Settings β†’ About Phone β†’ Memory. If the cache partition takes up more than 1-2 GB, it’s time to act. And if the phone starts spontaneously restarting or apps crash, cleaning the cache can be a temporary solution before flashing.

πŸ“Š How often do you clear the cache on your smartphone?
Once a week.
Once a month
Only when the phone is slowing down.
Never cleaned.
I don't know what that is.

1. Standard cache cleaning via MIUI/HyperOS settings

The easiest and safest way to do this is to use the built-in MIUI or HyperOS tools, which do not require root rights and is suitable for beginners, and automatically detects unnecessary files, including the residual cache of remote applications, image thumbnails and temporary data.

Instructions:

  • πŸ“± Open the Settings. β†’ Memory (on some firmware, the path may differ: Settings) β†’ Additionally. β†’ Memory).
  • πŸ” Click on β€œClean” or β€œFree” (in HyperOS, it can be called β€œOptimizationΒ»).
  • βœ… Confirm the action. The system will show how much space has been vacated.

This method only removes secure temporary files without affecting application data or system settings, but it doesn't clear the entire cache β€” for example, Dalvik-cache (optimized files to speed up application launch) remains intact.

πŸ’‘

If the Clean button is inactive, restart the phone, and sometimes the system blocks cleaning due to background processes.

2 Manually cleansing the cache of individual applications

Some apps (especially social networks, instant messengers and games) accumulate gigabytes of cache. For example, Telegram can store up to 5 GB of temporary files, and TikTok can store up to 3 GB. Clearing the cache of a particular application will not delete your accounts or saves, but can reset some settings (for example, cached videos on YouTube).

How to clean:

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Select the app you want (like Facebook or Google Chrome).
  3. Click on "Memory" (or "Storage").
  4. Tap "Clear Cache." Don't click "Clear Data" - it will delete all the app settings!

For convenience, sort apps by cache size: in the upper right corner, click three dots β†’ β€œSort by size.” So you quickly find the main memory eaters. For example, Redmi Note 12 Pro+ can take up to 800 MB of cache after six months of use.

Which apps most often clog up the cache?
According to the analysis of Xiaomi users in 2026 year-round-5 Β«junk-apps: 1. TikTok - up 4 GB (cache video) 2. Telegram - before 5 GB (media files in chat rooms) 3. Facebook - before 2 GB (images and stories) 4. Google Chrome - before 1,5 GB (offline pages) 5. Instagram - before 1,2 GB (miniatures and rails)

3.Cache clearing through Recovery Mode (no root)

If the phone is slowing down or not responding to commands, you can use Recovery Mode, which removes Dalvik-cache and other system temporary files that are not cleared through standard settings. On some Xiaomi models (such as the POCO F5 or Redmi K60), this method can reset MIUI regional settings, but does not delete personal data.

Step-by-step:

β˜‘οΈ Preparation for cleaning through Recovery

Done: 0 / 4
  1. Turn off the phone.
  2. Press the button combination to enter Recovery: For most Xiaomi: Volume up + Power. For POCO: Volume up + Power (hold 10 seconds). For older models (until 2019): Volume up + Volume down + Power.

Recovery

Wipe & Reset β†’ Wipe Cache

Confirm the action and wait until the completion (it will take 1-3 minutes).

Reboot β†’ Reboot to System

⚠️ Note: Some firmware may call the Wipe Cache item Wipe Dalvik/Cache. Don’t confuse it with Wipe Data – it’s a complete phone reset!

4.Use of ADB for deep cleaning (for advanced)

If standard methods don’t work, you can use Android Debug Bridge (ADB), a debugging tool that lets you control your phone through a computer, which removes Dalvik-cache and other hidden temporary files that are not available through normal settings.

What you need:

  • πŸ’» Computer with Windows/macOS/Linux.
  • πŸ”Œ USB-cable (preferably original).
  • πŸ› οΈ Installed drivers Xiaomi and ADB (You can download from the official Android website).
  • βš™οΈ Included debugging by USB on the phone (Settings) β†’ The phone. β†’ Version. MIUI β†’ 7 times tap to unlock the developer options, then Settings β†’ Additionally. β†’ For developers β†’ Debugging by USB).

Cleanup commands:

adb shell


su




rm -r /data/dalvik-cache/*




rm -r /cache/*




exit




exit

After completing the commands, restart the phone. The first start may take up to 5 It's okay to recover Dalvik-cache, which is especially effective for Xiaomi on Android. 12+, where standard cleaning often leaves garbage in the folder /data/system/package_cache.

⚠️ Note: If after cleaning through ADB phone hangs on the logo MI, Don't panic. 10-15 If you keep hanging out longer, you'll have to go through the Fastboot.

5. Automatic cleaning with third-party applications

For those who don't want to dig into the settings, there are third-party utilities that analyze and clear the cache in one click. However, beware: many Google Play cleaners clog the system with ads or collect data themselves. We tested several apps and selected the safest ones.

AnnexFunctionsConsRatings.
SD MaidDeep cache cleaning, duplicate search, system files managementPaid version for full functionality, requires root for some operations4.7/5
Files by GoogleCache removal, garbage cleaning, memory analysisDoes not remove Dalvik-cache, limited functionality4.5/5
CCleanerQuick cleaning of the cache, optimization of RAMAggressive advertising, collecting user data4.2/5
Xiaomi Cleaner (built into MIUI)Cache cleaning, photo duplicate removal, autoload optimizationIt does not always delete the cache completely, it can skip system files.4.0/5

Recommendation: Xiaomi is best suited to SD Maid (especially if there is root) because it can clean folders that ignore other utilities, such as finding and deleting residual files after uninstalling applications in the /data/app-lib folder.

πŸ’‘

The application side is not a substitute for manual cleaning; they can skip the cache of system processes (e.g. com.miui.home) that takes hundreds of megabytes.

6.Cache cleansing via TWRP (root only)

If your Xiaomi has custom TWRP recovery installed, you can clean the cache as deeply as possible β€” including ART-cache (the analogue of Dalvik-cache for newer versions of Android), which is suitable for power users, as it requires an unlocked bootloader and superuser rights.

How to clean:

  1. Boot in TWRP (usually Volume Up + Power).
  2. Go to Advanced β†’ File Manager.
  3. Delete the contents of the following folders: /data/dalvik-cache /cache /data/system/package_cache

Wipe β†’ Advanced Wipe

Dalvik / ART Cache

Cache

Reboot the phone.

After this cleaning, it takes longer to start the system first, but you get a clean cache, like after you have firmware, which is especially useful before installing custom firmware or after you change the MIUI version.

7.Cache reset via service codes (hidden functions)

Xiaomi hides some of the cleaning features behind service codes β€” combinations of numbers that are entered in the phone app. These codes allow diagnostic tools, including cache cleaning. Importantly, not all codes work on new models (such as the Xiaomi 14 or the POCO X6 Pro), but on devices before 2023 they usually work.

Verified codes for cleaning:

  • πŸ“ž ##4636## β†’ Β«WarehouseΒ» β†’ Β«Clear cache" (works on Android) 9-11).
  • πŸ“ž ##284## β†’ Cache test (shows volume and allows you to clean).
  • πŸ“ž ##7780## β†’ Resetting (does not delete data, but clears the cache of system applications).

On new firmware (HyperOS), these codes can be blocked. If nothing happens after you enter the code, then the function is disabled for your model.

πŸ’‘

Service codes may vary depending on the firmware region, for example, on the global version of MIUI, code ##4636## works, while in Chinese it doesn't.

FAQ: Frequent questions about cleaning up cache on Xiaomi

❓ Should I clean the cache regularly?
No, frequent cleaning can slow down the phone, as apps will have to cache data again, just do this once every 1-2 months or when the phone starts to slow down, except for the cache of messengers (for example, Telegram), which can be cleaned more often.
❓ What happens if you clear the game's cache?
The game can take longer to load on its next run, as it will have to re-download texture packets and other temporary files, but saves and progress won't suffer unless you click Clear Data.
❓ Why after cleaning the cache, the phone began to slow down?
This is normal in the first 10-15 minutes, the system recovers the necessary temporary files. If the brakes last longer, you may have deleted critical system data (for example, through TWRP without a backup), in which case only the firmware will help.
❓ Can I clear the cache without losing data?
Yes, all of the methods in this article (except for a full reset via Recovery) save personal files, photos, and app settings. However, always back up before deep cleaning (e.g., via Mi Cloud or Google Drive).
❓ How to check how much cache my Xiaomi has?
Go to Settings β†’ About Phone β†’ Memory. There you will see a graph with the memory distribution, where the cache is usually highlighted in gray or orange. Click on the cache section to see detailed statistics.