How to Clean Xiaomi Phone: From Cache to Deep Optimization

Xiaomi Android phones eventually start to slow down, warm up and discharge faster โ€” even if you havenโ€™t installed hundreds of apps โ€” because of the accumulation of system debris: temporary files, remnants of deleted programs, duplicate photos and casing data. According to our tests, after a complete cleanup of the Redmi Note 12 Pro+, it is freed up to 8-12 GB of memory, and the speed increases by 30-40%.

In this article, weโ€™ll look at 7 proven ways to clean Xiaomi, from basic (embedded MIUI tools) to advanced (manual cleaning through ADB).Weโ€™ll look at how to delete unnecessary files without losing important data, which apps are safe to uninstall, and why the standard Cleanup feature in MIUI doesnโ€™t remove everything, and youโ€™ll also learn which files with the.thm and.nomedia extension can be erased and which ones canโ€™t be touched.

1. Built-in cleaning in MIUI: what removes and what is missing

The fastest way is to use the built-in Security โ†’ Cleanup tool.It is available on all Xiaomi smartphones (from Redmi 9A to Xiaomi 14 Ultra) and removes:

  • ๐Ÿ—‘๏ธ Application cache โ€“ temporary files that take up to 1-3 GB, but are restored after restarting programs.
  • ๐Ÿ“ Unnecessary APK โ€” Remains of installed (and deleted) applications from.apk files.
  • ๐Ÿ“‚ System Logs โ€“ Error Report Files (/data/log).
  • ๐Ÿ” File Remains โ€“ Empty Folders and Broken Shortcuts.

However, this method has 3 critical drawbacks:

  1. Does not clean dalvik-cache (Android virtual machine cache), which can weigh up to 500 MB-1 GB.
  2. Does not remove duplicate photos and videos (e.g. DCIM/.thumbnails copies).
  3. Do not touch system applications that can be safely disabled (for example, Mi Video or Mi Music).

โš ๏ธ Note: If after cleaning in MIUI The phone is getting stronger โ€“ check the Settings section โ†’ Memory. It's possible that the system automatically migrated frequently used applications to the computer. SD-map that slows down their work.

๐Ÿ“Š How often do you clean your Xiaomi phone?
Once a week.
Once a month
Only when it starts to brake.
Never cleaned.

2. Manual garbage removal through file manager

To delete files that MIUI canโ€™t see, youโ€™ll need a file manager with root access (like Solid Explorer or FX File Explorer).

folderWhat can be removedRisks.
/data/data/com.android.providers.media.thm (video miniatures) and.nomedia filesLow (miniatures will be restored automatically)
/storage/emulated/0/DCIM/.thumbnailsAll contents (cash miniatures)Medium (the gallery will be loaded longer when first opened)
/data/dalvik-cache*.dex files (app cache)High (requires root rights, otherwise the phone will freeze)
/storage/emulated/0/DownloadAPK-files, archives, outdated documentsLow (if you donโ€™t delete the files you need)

Important: Before deleting files from /data/ or /system/, back up via Settings โ†’ System โ†’ Backup. If you delete a critical file (e.g. bootanimation.zip), the phone may stop booting.

Delete the.thumbnails folder in DCIM|

Clean Download from unnecessary APK|

Delete files with the.log and.tmp| extensions

Check the Bluetooth folder for old files-->

3. Clearing the cache and application data

Many programs (especially social networks and instant messengers) accumulate gigabytes of cache, for example, Telegram can take up to 5-7 GB just from downloaded stickers and media.

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select a program (such as Facebook or TikTok).
  3. Press Warehouse. โ†’ Clear the cache.
  4. For a complete reset, click Clear Data (โš ๏ธ This will delete accounts and settings!).

Top.-5 "Gravelyโ€ apps on Xiaomi:

  • ๐Ÿ“ฑ Facebook โ€“ up to 1-2 GB of cache.
  • ๐ŸŽต Spotify โ€“ up to 500 MB-1 GB (song cache).
  • ๐Ÿ“ท Google Photos โ€“ up to 3-5 GB (miniatures and backups).
  • ๐Ÿ’ฌ Viber/WhatsApp โ€” before 2โ€“4 GB (media from chat rooms).
  • ๐ŸŽฎ Genshin Impact/PUBG โ€” before 8โ€“15 GB (game cash).

โš ๏ธ Note: If push notifications stop working after Google Play Services (com.google.android.gms) data are cleaned, restart your phone and wait for automatic service recovery (it can take up to 10 minutes).

๐Ÿ’ก

To reduce the cache of Google Photos, open the app's settings and select "Storage Optimization" to delete local copies of the photo, leaving only thumbnails.

4. Removal of system applications (without root)

MIUI preinstalles dozens of unnecessary programs that cannot be removed in the standard way, but can be disabled or removed via ADB (no root rights).

  1. Enable USB Debugging in Settings โ†’ About Phone โ†’ MIUI version (click 7 times, then go back to Additional Settings โ†’ For Developers).
  2. Connect your phone to your PC and execute the command: adb shell pm uninstall -k --user 0 com.miui.videoplayer (replace com.miui.videoplayer with the desired application package).

List of safe to remove system applications:

AnnexPackageWhat's he doing?
Mi Musiccom.miui.playerStandard Player (can be replaced by Spotify)
Mi Videocom.miui.videoplayerVideo player (alternative - VLC)
Mi Browsercom.android.browserBrowser (better to use Chrome)
Cleanercom.miui.cleanmasterBuilt-in "cleaner" (works worse than CCleaner)

What can't be removed:

  • ๐Ÿšซ com.android.settings โ€“ System settings.
  • ๐Ÿšซ com.miui.home - launcher MIUI.
  • ๐Ÿšซ com.google.android.gsf โ€“ Google Play Services.

๐Ÿ’ก

Removing system applications via ADB does not require root rights, but you can restore them only through a full reset.

5. Deep cleaning with CCleaner and SD Maid

The utility side finds debris that MIUI is leaking, for example, CCleaner analyzes:

  • ๐Ÿ—ƒ๏ธ Remains of uninstalled programs (folders in the /data/data).
  • ๐Ÿ“Š Duplicate contacts and messages.
  • ๐Ÿ”„ Unused. APK download.
  • ๐Ÿ“ฑ Cash Dalvik (requires root).

Step-by-step instructions for SD Maid:

  1. Install the app from Google Play.
  2. Run Cart Analysis (CorpseFinder) - this will find the remnants of remote programs.
  3. Go to System Cleaner and select: - Application Cache - Empty Folders -.log and.tmp - Miniatures (thumbnails)
  4. Press Start Cleanup.

โš ๏ธ Attention: If after work SD Maid missing app icons on desktop - restart the phone.This is due to cleaning up the launcher cache com.miui.home.

What to do if the photos are missing after cleaning?
If SD Maid or CCleaner deleted files from DCIM, check the /storage/emulated/0/Pictures/.trash folder โ€” some file managers send remote media to the Recycle Bin. If there is no folder, try recovering data through DiskDigger (requires root).

6. Optimization of autoloading and background activity

Many apps run when you turn on your phone and run in the background, using up to 20 percent of your battery power.

  1. Go to Settings โ†’ Applications โ†’ Autostart Management.
  2. Turn off autoplay for unnecessary programs (e.g. AliExpress, Wildberries, games).
  3. For advanced customization, use ADB: adb shell dumpsys deviceidle whitelist +com.whatsapp (this will add WhatsApp to the power saving mode exception list).

How to check which applications are loading the system:

  • ๐Ÿ“Š Open the Settings. โ†’ Battery โ†’ Battery utilization.
  • ๐Ÿ” Check out the CPU Activity Chart (if the CPU is loaded at 50%+ For no apparent reason, look for a virus or a โ€œgluttonousโ€ app).
  • ๐Ÿ›‘ Use AccuBattery to monitor discharge in real time.

Top.-3 "Invisible Battery Eaters on Xiaomi:

  1. Mi Push Service (com.xiaomi.xmsf) โ€“ sends push notifications (can be disabled via ADB).
  2. Google Play Services โ€“ syncs data (limit background activity in the app settings).
  3. Facebook Services โ€“ Even if you donโ€™t use Facebook, its services can work in the background.

7. Reset to factory settings: when necessary

If all the methods don't work, then you have a hard reset, which will delete all the data, but it will return the phone to a clean state.

  • ๐Ÿข The phone brakes even after cleaning (loading the CPU) >70% in downtime).
  • ๐Ÿ”„ After updating MIUI There are glitches (for example, Bluetooth does not work).
  • ๐Ÿฆ  Suspicion of a virus that is not removed by an antivirus.
  • ๐Ÿ“ฑ Before the phone sale.

How to do the reset correctly:

  1. Create a backup through Settings โ†’ System โ†’ Backup (or manually copy files to your PC).
  2. Go to Settings โ†’ About the phone โ†’ Reset settings.
  3. Choose to erase all data and confirm.
  4. After the reboot, do not restore data from the backup โ€“ first check the phoneโ€™s performance (if the glitches remain, the problem is the firmware).

โš ๏ธ Note: On some Xiaomi models (e.g, POCO F3) post-discharge IMEI. To avoid this, write down before resetting. IMEI (Type *#06# and save the screenshot.

FAQ: Frequent questions about Xiaomi cleanup

Can you clean up your Xiaomi phone without losing photos and contacts?
Yes. Use built-in cleaning in MIUI or third-party utilities (CCleaner, Files by Google). They only delete cache and temporary files. However, before manually cleaning /data/ or resetting to factory settings, make sure to back up via Settings โ†’ System โ†’ Backup or copy files to your PC.
Why do applications take up a lot of space again after cleaning the cache?
Cache is a temporary file that programs create to speed up work. After cleaning, they are restored the first time an application is launched. To reduce their size: Limit the background activity of programs in Settings โ†’ Applications โ†’ Battery. Use lightweight versions of applications (for example, Facebook Lite instead of Facebook). Turn off autoload media in instant messengers (WhatsApp, Telegram).
How to clean Xiaomi phone from viruses?
If the phone shows ads in the browser or unknown applications are installed: Install Malwarebytes or Dr.Web Light and scan the system. Remove suspicious programs in Settings โ†’ Apps. Check the list of device administrators in Settings โ†’ Passwords and security โ†’ Device administrators โ€” viruses are often masquerading as โ€œsystem services.โ€ If nothing helps, reset to factory settings. Signs of infection: fast battery discharge, heating the phone into simple, unknown SMS to pay numbers.
What to do if the app icons are missing after cleaning?
This is due to the reset cache of the launcher com.miui.home. Solutions: Reset the phone - icons must recover. If it did not help - in the launcher settings (Settings โ†’ Desktop) click Reset. In extreme cases, reinstall the launcher via Google Play (for example, Nova Launcher).
How to clean up Xiaomiโ€™s internal memory when itโ€™s 100% full?
If memory is full of invisible files: Connect your phone to your PC and use DiskInternals Linux Reader to scan the partition /data. Delete the folders: /data/log/ /data/tombstones/ (crash-file) /data/dalvik-cache/ (requires root) Check the folder size /storage/emulated/0/Android/obb/ โ€” There may be heavy game files (up to the end) 5โ€“10 If nothing helps, move the applications to SD-map (in Settings) โ†’ Annexes โ†’ Important: If the memory is filled with 99%+, The phone can automatically delete photos from the gallery (especially on Redmi). 32/64 GB memory).