Hidden files on Xiaomi, Redmi and POCO smartphones take up precious space in memory, slow down the system and can contain residual data from remote applications. Unlike regular files, they do not appear in the standard MIUI Explorer, but they can be detected using embedded tools or third-party utilities. The problem is complicated by the fact that some of these files are created automatically by the system (caches, log files, backups), and the other remains after incorrect removal of programs.
In this article, we will discuss 5 working methods for finding and removing hidden files on Xiaomi devices running MIUI 12/13/14 and Android 11-14. You will learn how to distinguish system hidden files (which are not recommended to touch) from junk ones, how to clean the cache of hidden applications and what to do if files are not deleted by standard methods.
Why do hidden files appear on Xiaomi?
Hidden files on Xiaomi are divided into three categories, each of which has its own purpose and level of danger when deleted:
- ๐ฑ System Hidden Files โ Created MIUI for the operation of the OS (e.g, /data/system, /miad). Removing them can lead to failures.
- ๐๏ธ Discarded hidden files โ remnants from deleted applications, cache, thumbnails (.thumbnails), temporary files (.tmp.
- ๐ Hidden user files โ created manually (e.g., through Total Commander) or by applications (e.g., WhatsApp stores backups to the userโs computer). /sdcard/WhatsApp/Databases).
The main reasons for the accumulation of hidden files:
- ๐ Automatic reservations โ MIUI Creates hidden copies of contacts, messages and settings in folders of type /MIUI/Backup.
- ๐ฎ Games and applications โ many programs (for example, PUBG Mobile, TikTok store cache in hidden folders.
- ๐ธ Media files - gallery MIUI It generates thumbnails (.thumbnails) even for deleted photos.
- ๐ง Removal errors โ when uninstalling applications through Settings โ Applications often remain folders with settings.
โ ๏ธ Note: Files with.odex or.vdex extension in folder /data/app โ These are optimized components of applications, and if they're removed, they're going to crash programs!
Method 1: Enable the display of hidden files in MIUI File Explorer
The easiest method is to use the built-in MIUI Explorer (or File Manager on global firmware), but by default it doesn't show hidden files.
- Open the Explorer app (the folder icon on the desktop).
- Tap the three-point menu (โฎ) top-right.
- Select Settings โ Additionally.
- Activate the switch to show hidden files.
Then, folders and files that start with a dot (e.g.,.config,.cache) will appear in the root directory (/storage/emulated/0). Don't delete folders without a dot at the beginning - this is normal user data!
Folders with.thumbnails extension (miniatures)
Files with.tmp extension (temporary)
Folders.Trash or.Recycle
Application cache in /Android/data/<package>/cache
-->
If MIUI Explorer does not show hidden files even after you turn on the option, try alternative file managers:
- ๐ Solid Explorer โ supports dual-panel mode and cloud storage.
- ๐ FX File Explorer โ has built-in memory analysis and garbage cleaning.
- ๐ ๏ธ Root Explorer โ for root-right users (gives access to system folders).
Method 2: Delete hidden files via ADB (without root)
If hidden files are not deleted through the Explorer (for example, due to the limitations of MIUI), you can use ADB (Android Debug Bridge), which does not require root rights, but requires connecting the smartphone to a PC.
Steps to clean through ADB:
- Download Googleโs Platform Tools and unpack the archive.
- On your smartphone, turn on USB Debugging: Settings โ About Phone โ MIUI Version (tap 7 times) Settings โ Additional โ For Developers โ Debugging by USB
- Connect your phone to your PC and open the command line in the adb.exe folder.
- Follow the commands: adb devices adb shell su (if root is available) rm -rf /sdcard/.thumbnails rm -rf /sdcard/DCIM/.thumbnails
To remove hidden files from a particular application (such as WhatsApp), use:
rm -rf /sdcard/WhatsApp/.Shared
rm -rf /sdcard/WhatsApp/.Nomediaโ ๏ธ Attention: Command rm -rf Deletes files irrevocably. Check the path with the ls command before executing. /sdcard/folder!
๐ก
If ADB Canโt see the device, try reinstalling Xiaomi drivers USB Drivers or use the original cable (not all) USB-cables support data transmission).
Method 3: Cleaning with Recovery Mode (for power users)
If Xiaomiโs smartphone is slowing down due to hidden files and standard methods donโt help, you can use Recovery Mode.This method is suitable for removing the system cache and Dalvik-cache, but does not affect user data.
Instructions:
- Turn off the phone.
- Press the Power button + Volume up until the Mi logo appears.
- From the Recovery menu, select Wipe & Reset โ Wipe Cache.
- Confirm the action and restart the device.
This method cleanses:
- ๐๏ธ Cache system (/cache)
- ๐ Dalvik-cache (optimized application files)
- ๐ Temporary update files (/cache/ota)
Note: Wipe Cache does not delete personal data, but resets some settings (e.g. Google Play Services cache).If the problem is not resolved, try Wipe Dalvik Cache (available in custom TWRP-type reclaimers).
What's a Dalvik-cache?
Method 4: Using Cleaning Applications (CCleaner, Files by Google)
If manual methods seem complicated, you can use specialized utilities that automatically find and delete unnecessary hidden files, but have limitations:
| Annex | Advantages | Deficiencies | Reference |
|---|---|---|---|
| Files by Google | Quick memory analysis, removal of duplicates | Does not show deep hidden system files | Google Play |
| CCleaner | Clearing cache, history, temporary files | Aggressive Advertising in the Free Version | Google Play |
| SD Maid | Deep Cleanup, Search for โDeadโ Files | Requires root for full functionality | Google Play |
| 1Tap Cleaner | Cache removal with one tap | Does not work with files in /data | Google Play |
Recommendations for use:
- ๐ Before cleaning, check which files the app offers to delete (sometimes it mistakenly labels the data as junk).
- ๐ซ Avoid โoptimizersโ that promise to โspeed up your phone by 300%โ โ they often delete useful files.
- ๐ After cleaning, restart the smartphone so that the system recovers the necessary cache.
๐ก
Applications like Files by Google don't see files in the /data folder without root permissions. Use ADB or manual methods for deep cleaning.
Method 5: Manually delete hidden files via TWRP (for root users)
If you have custom TWRP recaps installed or root access, you can delete hidden files directly from the system folders. This method is risky, but effective for cleaning:
- ๐ Folders. /data/data/<packet> (cache)
- ๐๏ธ Folders. /data/local/tmp (time-file)
- ๐ Folders. /cache and /system/cache
Instructions for TWRP:
- Load to TWRP (clip Power + Volume Up).
- Select Advanced โ File Manager.
- Go to /data/data and delete the app folders that have already been deleted (for example, if you have uninstalled Facebook, but the com.facebook.katana folder is still there).
- Clean /cache and /dalvik-cache (Wipe Dalvik option in the main menu).
โ ๏ธ Note: Delete files in /system without knowing their purpose can lead to a "brick" device (completely inoperable)! TWRP โ Backup.
For root-right users, the Root Browser app or the Terminal Emulator command is also suitable:
su
cd /data/data
ls | grep -v "com.android" | xargs rm -rfThis command will delete folders of all user applications except system ones (com.android.*).
How to Prevent the Accumulation of Hidden Files in the Future
To prevent hidden files from taking up memory again, follow these tips:
- ๐ Regular cleaning of the cache - once a month go to Settings โ Annexes โ Manage applications and clear cache for all programs.
- ๐ฑ Turn off automatic reservations: Settings โ Accounts and synchronization โ Mi Cloud โ Disable backups
- ๐ซ Remove Apps Correctly โ Use Settings โ Annexes โ Remove, not just move the icon to the cart.
- ๐ธ Clean the gallery โ in Google Photos or the standard gallery MIUI Clean up garbage (remove thumbnails and duplicates).
- ๐ Use the "Secure Folder" - in MIUI There is a function of hiding files without creating technical debris: โ Secure folder. โ Move the files there
It is also useful to disable the creation of miniatures in the gallery:
Settings โ Additional โ Gallery โ Disable โCreate miniaturesโ๐ก
If you install/delete applications frequently, use App Cloner to test programs in an isolated environment, which will prevent the system from clogging with residual files.