How to completely clean Xiaomi smartphone from garbage: from cache to hidden files

Your Xiaomi is slowing down, quickly discharged or emitting β€œNot enough memory” errors? 90% of the time is due to accumulated system debris: temporary application files, remnants of deleted programs, browser cache and duplicate photos. Even new models on MIUI 14/15 are not immune to this problem unless you clean it regularly.

Unlike factory resets, which erase all data, proper garbage cleanup allows the phone to return to β€œinitial speed” without losing personal files. This article features unique techniques for Xiaomi that you won’t find in standard instructions, including working with hidden /.thumbnails and /MIUI/backup folders, and optimizing autoboot via adb.

We will discuss both manual (for power users) and automatic methods using built-in MIUI tools and third-party utilities, with a special focus on low-memory models (Redmi 9A, Poco C31), where every megabyte counts.

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

Starting with the standard tool, Cleanup in MIUI settings, it's available on all Xiaomi smartphones starting with MIUI 8, but its capabilities are often underrated. To open the menu, go to:

Settings β†’ Applications β†’ Cleaning

Here, the system automatically analyzes:

  • πŸ—‘οΈ Application cache – temporary files that take up to 3-5 GB on an actively used phone.
  • πŸ“ Unnecessary APK β€” Remains from installed (and remote) applications.
  • πŸ” Log files are system errors logs that are rarely needed by the user.
  • πŸ“· Miniatures – folder /.thumbnails with reduced copies of images (can weigh up to 1 GB!).

However, the built-in MIUI cleaning does not remove:

  • πŸ“± Duplicate photos (especially relevant for Google Photos and Xiaomi Gallery).
  • πŸ”„ Remains of updates - folder /cache/ota firmware.
  • πŸ€– System backups in /MIUI/backup, which are created when the settings are reset.

⚠️ Note: Do not manually delete folders /system or /vendor β€” This will lead to the collapse of the system and require a flashing through the Fastboot.

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

2. Manual cleaning: hidden folders and secure files for removal

Deep cleaning requires a file manager with access to root folders (such as Mi File Explorer or Solid Explorer). Enable the display of hidden files in the manager settings and go to the root directory (/).

Here is a list of folders and files that can be deleted without risk to the system:

Folder/fileSize (example)What it keeps.Can I remove it?
/.thumbnails500MB - 1.5GBImage and video miniaturesYeah, totally.
/MIUI/backup100MB - 1GBBackup copies of settingsYeah, unless you're planning a pullback.
/cache/ota1-3 GBMIUI Update FilesYeah, after the firmware was installed.
/Android/data/*/cache1-5 GBCash app.Yes, but some apps will take longer to load.
/DCIM/.thumbnails200-800MBMiniatures from the GalleryYes, it's safe.

For removal:

  1. Open the file manager and enable Root mode (if you have superuser rights).
  2. Go to the desired folder and highlight all files (long press β†’ β€œSelect all”).
  3. Click "Delete" and confirm the action.

⚠️ Attention: Do not delete folders /Android/obb β€” It stores game data (such as Genshin Impact or Call of Duty Mobile) and deleting it will require re-downloading several gigabytes.

Make a backup copy of important data|Check the vacant space (should be available) β‰₯10%)|Turn off autosynchronization Google Photos|Close all applications-->

3.Cleaning the cache of applications: what can be erased without consequences

App cache is a temporary file that speeds up programs but eventually becomes the main source of garbage, for example, Facebook can accumulate up to 500 MB of cache, and TikTok can accumulate up to 1 GB.

Method 1: Through the MIUI settings

Go to:

Settings β†’ Applications β†’ Application Management β†’ [Select App] β†’ Storage β†’ Clear Cache

For mass cleaning:

Settings β†’ Applications β†’ Cleaning β†’ Cache of applications β†’ Clean

Method 2: ADB (for experienced users)

If you need to clear the cache of all applications at once, connect the phone to the PC and execute the command:

adb shell pm clear --user 0 com.android.vending


adb shell pm clear --user 0 com.facebook.katana




adb shell pm clear --user 0 com.whatsapp

Replace the package names (com.android.vending is Google Play) with the ones you want. The complete list of packages installed can be obtained by the command:

adb shell pm list packages

After clearing the cache, some apps will load longer on the first run, but this is temporary. Do not clear the application data (Clear Data button) - this will lead to deletion of accounts and settings!

πŸ’‘

If after cleaning the Google Play cache, the Store stopped updating the apps, restart the phone and check the Internet connection. β†’ SIM-maps and mobile networks β†’ Resetting network settings

4. Removal of duplicate photos and unnecessary media files

One of the biggest memory eaters on Xiaomi is duplicate photos, which are created by:

  • πŸ“Έ Automatic backup in Google Photos and Mi Cloud.
  • πŸ”„ Synchronization with messengers (WhatsApp, Telegram).
  • πŸ“± Screenshots that are saved in /Pictures/Screenshots.

To find duplicates, use:

  • πŸ” Built-in Gallery MIUI: open the album β†’ Β«MoreΒ» β†’ Β«Search for duplicatesΒ».
  • πŸ€– Duplicate applications: Files by Google, Duplicate Files Fixer.
  • πŸ’» PC programs: CCleaner, AntiDupl (if thousands of photos are taken).

Pay special attention to the folders:

/DCIM/Camera


/DCIM/Screenshots




/Pictures/Telegram




/Download

They often accumulate unnecessary files, for example, Telegram stores all media in /Pictures/Telegram by default, even if you did not download them explicitly.

How to disable auto-save media in Telegram?
Open Telegram β†’ Settings β†’ Data and Memory β†’ Auto-Save Media β†’ Disable Saving for all file types or select only the right chats.

5.Optimizing autoboot: why the phone brakes even after cleaning

Even after removing the garbage, Xiaomi can run slowly due to autoloadable apps.Many programs (especially Chinese ones) are added to the autoload without your knowledge and consume resources in the background.

To turn off autoboot:

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Select an app (such as Mi Video or Mi Browser).
  3. Press Auto Start and turn off the slider.

For mass shutdown, use ADB:

adb shell cmd appops set com.miui.browser RUN_ANY_IN_BACKGROUND deny


adb shell cmd appops set com.xiaomi.midrop RUN_ANY_IN_BACKGROUND deny

A list of β€œgluttonous” MIUI system applications that can be safely disabled:

AnnexPackageWhat's he doing?
Mi Browsercom.android.browserStandard browser (can be replaced with Chrome)
Mi Videocom.miui.videoplayerVideo player (alternative - VLC)
Mi Musiccom.miui.playerMusic player
Cleanercom.miui.cleanmasterCleaning (can be replaced by CCleaner)

⚠️ Note: Do not disable system processes with the names com.android or com.qualcomm – this will lead to unstable operation of the phone or complete inoperability of modules (camera, network).

πŸ’‘

Turning off autoboot for 5-10 unnecessary applications can increase battery life by 15-20% by reducing background activity.

6.Reset the partition cache (Wipe Cache Partition): when and how to use

If your phone is slowing down, overheating, or is making update errors, the Wipe Cache Partition will help, not a factory reset, your data (photos, contacts, messages) will remain intact but will be deleted:

  • πŸ—„οΈ Temporary system files.
  • πŸ”„ Remains of failed updates.
  • πŸ“± Kernel cache and dalvik cache (important for performance).

Instructions for Xiaomi:

  1. Turn off the phone.
  2. Press the Power button + Volume up until the Mi logo appears.
  3. From the Recovery menu, select Wipe & Reset β†’ Wipe Cache (use volume buttons for navigation, power button for confirmation).
  4. Confirm the action and wait until the completion (1-2 minutes).
  5. Choose Reboot. β†’ Reboot to System.

Once rebooted, the phone will run faster and have 500MB-1GB more free space, a method that is especially useful before upgrading MIUI if it is β€œhanging” during the installation phase.

What to do if the phone does not turn on after Wipe Cache?
If after resetting the cache, the phone is stuck on startup the Mi logo, try: 1. Repeat Wipe Cache Partition again. 2. Select Reboot to Bootloader in Recovery and reflash the phone through the Mi Flash Tool (PC will be required). 3. If nothing helps, this is a sign of damage to system files, and you need a full reset (Wipe All Data).

7 Cleanup Automation: The Best Apps for Xiaomi

If you don't want to manually clean your garbage, use specialized utilities. 10 Apps and selected top-3 Xiaomi:

AnnexPlusesConsReference
Files by GoogleFree, finds duplicates, clears the cacheDoes not remove MIUI system debrisGoogle Play
SD MaidDeep cleaning, working with root foldersPaid version for full functionalityGoogle Play
CCleanerConvenient interface, optimization of autoloadingAdvertising in the free versionGoogle Play

For maximum effect:

  1. Install SD Maid and give it Root rights (if the phone is rooted).
  2. Run the scan in the CorpseFinder section, and it will find the remnants of the remote applications.
  3. Use AppControl in SD Maid to disable autoloading of unnecessary services.

If the phone is not rooted, Files by Google is the best choice: it is free and requires no special rights.

FAQ: Frequent questions about Xiaomi cleanup

Can I clean the /Android/obb folder?
No, it stores game data (like PUBG Mobile or Free Fire) and deleting it will require you to re-upload the game files, which can take several gigabytes of traffic. If you want to vacate space, you better delete the game through Settings β†’ Apps.
Why does the phone stop after cleaning the garbage?
Possible causes: πŸ”‹ Exhausted battery (check in the AIDA64 or AccuBattery). πŸ“‰ Lack of RAM (close background applications in Settings) β†’ Annexes β†’ Launched). πŸ”„ Outdated firmware (update) MIUI In Settings β†’ The phone. β†’ If the brakes appeared after the update, try to roll back to the previous version. MIUI via Fastboot.
How to clean Mi Cloud from unnecessary backups?
Go to Settings β†’ Accounts β†’ Mi Cloud β†’ Storage Management. Here you can: Delete old backups (Backups section), Clear synchronized photos (Gallery section), Turn off automatic sync for unnecessary data (contacts, notes). Note: Deleting files from Mi Cloud will also delete them from your phone if sync is enabled.
Is it safe to use Clean Master or similar β€œoptimizers”?
No, these apps are often: πŸ›‘ False warnings about β€œcritical errorsΒ». πŸ“Š They can take up memory themselves (up to 200 MB). πŸ”„ Slow down the phone due to background processes. Better use the built-in cleaning. MIUI Or Files by Google. If you need something more powerful β€” SD Maid (but only with manual control).
How to clean Xiaomi of viruses, if they are the cause of garbage?
If your phone is infected (adverts appear, browser redirects appear), do this: Install Malwarebytes or Dr.Web Light and scan the system. Delete suspicious applications in Settings. β†’ Applications (especially with names like com.system.update) Reset your network settings to Settings β†’ SIM-maps and mobile networks β†’ Reset the network settings. If the viruses are still there, do a full reset (Wipe All Data in Recovery). APK from unknown sources and disable installation from unverified locations in Settings β†’ Confidentiality β†’ Special permits β†’ Installation of unknown applications.