How to find and delete hidden files on Xiaomi: safe ways to clean up

Hidden files on Xiaomi smartphones are like dust under the bed: they take up space, but they are not visible in a standard file manager. Over time, such files can accumulate, taking up gigabytes of memory and slowing down the device, especially for models with limited built-in storage, such as the Redmi Note 12 or POCO X5, where every megabyte counts.

But why do these files appear at all? Most often, they're application cache, temporary system process data, backups of updates, or remnants of deleted programs. Some are created automatically when you install apps from APK, others are created when you sync them with Mi Account, and the main problem is that you can't delete them by simply clicking "Clear Cache" in your settings.

In this article, weโ€™ll look at all the ways to find and delete hidden files on Xiaomi, including system folders that donโ€™t usually show up, which files can be deleted without risk and which ones should not be touched, even if they take up a lot of space, and weโ€™ll look at specialized applications and ADB commands that will help clean up memory as efficiently as possible.

What are hidden files and why do they take up memory?

Hidden files (or hidden folders) are data that is not displayed in the default MIUI Explorer, and can fall into three categories:

  • ๐Ÿ“ System files are necessary for Android and MIUI (for example, folders /data or /system). Hand-removing them is dangerous.
  • ๐Ÿ—‘๏ธ Cache and temporary files โ€“ remain after applications work (e.g..thumbnails for thumbnails or.nomedia for media files.
  • ๐Ÿ”„ Backups and logs โ€“ created when updates or crashes (e.g. folders) /MIUI/backup or /log). Often useless after use.

The main reason for this is that you don't clean up when you delete applications, for example, when you uninstall a game, save it or cache it may remain in the /Android/data folder. Another source is MIUI Optimizer, which creates temporary files to speed up the system, but doesn't always delete them.

โš ๏ธ Note: Some hidden files (for example, in a folder) /data/app) These are related to the operation of installed applications, and their removal may lead to failures or the need to reinstall programs.

How do you know when it's time to clean up hidden files?

  • ๐Ÿ“‰ The deviceโ€™s memory is full, but you havenโ€™t installed new apps.
  • ๐Ÿข Smartphone began to slow down when opening a gallery or file manager.
  • ๐Ÿ”„ After updating MIUI There was little space left, although it was enough.
๐Ÿ“Š How often do you clear your memory on your Xiaomi?
Once a week.
Once a month
Only when the place ends.
Never clean.

How to enable the display of hidden files in MIUI

Before you delete anything, you need to find hidden files. In MIUI, this is done through the standard file manager Files (or File Manager in global firmware).

  1. Open the Files app (the folder icon on the desktop).
  2. Click on three dots in the upper right corner (โ‹ฎ) and select Settings.
  3. Scroll down and activate the option to Show hidden files.
  4. Return to the root directory (/) and update the list (swipe down).

You will now see folders and files whose names start with a dot (e.g.,.config or.config.android_secure). System directories will also be visible. /data or /system, But access to them may be limited.

If you have a POCO Launcher or custom firmware, the path may be slightly different. For example, in some versions of MIUI for Redmi, the option is hidden in Settings โ†’ Additional โ†’ Developer Mode.

1. Go to Settings โ†’ About the phone.


2. 7 times click on "Version MIUI" to activate the developer mode.




3. Go back to Settings โ†’ Additional โ†’ For developers.




4. Find the option "Show hidden files" and turn it on.

โš ๏ธ Note: Some models (e.g. Xiaomi 13 Ultra) block access to system folders even after the hidden files are displayed. MIUI 14+.

Backup of important data

Check the free space in the settings โ†’ Memory

Close all working applications

Connect the charger (in case of long-term cleaning)-->

What hidden files can be deleted without risk

Not all hidden files are equally useful, but below is a list of folders and file types that can be deleted in most cases, as well as those that are not recommended to be touched.

File/folder typeCan I remove it?Explanation
.thumbnailsโœ… Yes.The miniatures of the images and the videos are removed without consequence, but will be recreated when the gallery opens.
.nomediaโš ๏ธ Partially.Files that hide media from the scanner, deleting hidden photos/video will make it visible in the gallery.
/Android/data/<app package>/cacheโœ… Yes.Application-specific cache. Similar to cleaning the cache in the settings, but deeper.
/MIUI/backupโœ… Yes.Backups of system settings. You can delete them if you don't plan to roll back.
/data/app-lib or /data/dalvik-cacheโŒ No.System files related to the operation of applications, deleting will cause failures.

Special attention should be paid to /Android/obb. This is where additional game data is stored (for example, graphics packages for Genshin Impact or Call of Duty Mobile). If you haven't played in a long time, these files can be deleted, but before that:

  • ๐ŸŽฎ Make sure the game doesnโ€™t use them (run it and check the download).
  • ๐Ÿ“ฅ Save a copy on PC if you plan to return to the game later.

Critically, never delete files from /system, /vendor, or /boot folders. This can cause a device to crash (completely) and youโ€™ll have to reflash it through Fastboot.

๐Ÿ’ก

If you're not sure if you can delete the folder, rename it (for example, add " old" at the end of the name). If the smartphone works normally after a day or two, feel free to delete it.

Manually cleans hidden files through file manager

If you decide to clean files manually, follow this algorithm to minimize the risks:

  1. Back up important data (photos, contacts, messages) through Settings โ†’ System โ†’ Backup or Mi Cloud.
  2. Open Files and go to the root directory (/).
  3. Sort files by size (click three dots โ†’ Sort by โ†’ Size) so that the heaviest folders are displayed first.
  4. Check the following directories (if any): ๐Ÿ—ƒ๏ธ /Android/data โ€” cache and application data. ๐Ÿ–ผ๏ธ /DCIM/.thumbnails โ€” thumbnail. ๐Ÿ“ /MIUI/backup โ€” backups. ๐Ÿ“„ /Download/.unconfirmed โ€” file-square.

Delete

Restart the device so that the changes take effect.

Example: a folder /Android/data/com.tencent.mm/MicroMsg (this is a WeChat cache) can store several gigabytes of unnecessary data, and if you don't use the messenger, it can be completely cleaned.

For convenience, use the file manager search:

  1. Click on the magnifying glass icon in the upper right corner.
  2. Enter extensions that often take up space:.apk โ€“ outdated installers..tmp โ€“ temporary files..log โ€“ logs of system processes.

Delete the files found if they are not related to the current applications.

What if the file manager doesnโ€™t show you some folders?
Even if some folders (e.g. /data) are not displayed after you have enabled the hidden files, you do not have root rights, in which case you can use ADB (see next section) or specialized applications like Root Explorer (requires root rights).

Cleaning Hidden Files with ADB (without root)

If manual cleaning didnโ€™t help or you want to delete files from secure folders (e.g. /data/local/tmp), you can use Android Debug Bridge (ADB), which doesnโ€™t require superuser rights, but offers more features than a standard file manager.

You'll need:

  • ๐Ÿ–ฅ๏ธ A computer with installed Xiaomi drivers and ADB.
  • ๐Ÿ“ฑ Smartphone with enabled debugging USB (Settings โ†’ The phone. โ†’ Version. MIUI โ†’ 7 taps โ†’ For developers โ†’ Debugging by USB).
  • ๐Ÿ”Œ USB-cable (preferably original).

Steps for cleaning:

  1. Connect your smartphone to your PC and confirm the debugging permission on the device screen.
  2. Open the command prompt (Windows) or terminal (macOS/Linux) and type: adb devices Make sure your device appears in the list.
  3. Use commands to search and delete: # View the list of large folders in /data adb shell du -sh /data/* | sort -rh | head -10 Delete the cache of all user applications (safe) adb shell pm clear --user 0 com.android.vending adb shell pm clear --user 0 com.miui.gallery Clear folder with temporary files adb shell rm -rf /data/local/tmp/*

To delete specific files, use the adb shell rm -rf /path/to/file command, for example, to clear the cache of Google Play Services:

adb shell rm -rf /data/data/com.google.android.gms/cache/*

โš ๏ธ Attention: Rm teams -rf A path error (e.g. an extra space) can result in the deletion of important data. Always check the path with the adb shell ls /path/to/folder command before deleting it.

If you need to delete files from the /sdcard folder, use:

adb shell rm -rf /sdcard/Download/.unconfirmed/*


adb shell rm -rf /sdcard/DCIM/.thumbnails/*

๐Ÿ’ก

ADB allows you to clean files that are not available through a standard file manager, but requires caution.Always check paths and back up before mass deletion.

Applications for Automatic Cleaning of Hidden Files

If you're a hard person to work with ADB, you can use third-party applications that automate the process, but some require root rights to work properly.

  • ๐Ÿงน Files by Google โ€” has a "Clean Up" feature that finds unnecessary files, including hidden ones. Free, no root.
  • ๐Ÿ” SD Maid is a deep cache and temporary file cleaner. There's a paid version with advanced features.
  • ๐Ÿ› ๏ธ Root Explorer for root users. Allows you to edit system folders.
  • ๐Ÿ“ฆ CCleaner โ€“ cleans cache and garbage, but on MIUI You may not see all the hidden files.

Example of working with SD Maid:

  1. Install the app from Google Play.
  2. Run the scan (CorpseFinder looks for remnants of remote applications).
  3. In the AppCleaner section, select apps and click Clean.
  4. For deep cleaning, go to SystemCleaner (requires root).

What to look for when choosing an application:

  • ๐Ÿ”’ Check permissions: if the application requests access to the SMS or contact for "cleanup", it is suspicious.
  • ๐Ÿ“Š See the reviews. 4PDA or XDA Developers โ€“ there is a lot of discussion about the effectiveness of Xiaomi.
  • ๐Ÿ’ฐ Avoid programs that ask for payment for basic features (such as cache cleaning).

For POCO models (like the POCO F5), itโ€™s useful to use the POCO Launcher with a built-in cleaner.Itโ€™s optimized for MIUI-based firmware and better finds Xiaomi-specific hidden files.

What to do if after cleaning the smartphone works worse

In rare cases, when hidden files are deleted, problems can arise: applications stop opening, errors appear, or the system constantly restarts.

Problem.Reason.Decision
The app will fly out when it opens.Deleted cache or data files in /Android/dataReinstall the application or clear its data in Settings โ†’ Applications
Gallery doesn't show photoDeleted.nomedia files or thumbnailsRestart the device or use the โ€œUpdateโ€ function in the gallery
The system is constantly restarting.Critical files removed from /system or /dataPerform a reset to factory settings or reflash the device via Fastboot
Wi-Fi or mobile network is not workingDeleted configuration files in /data/misc/wifiReset network settings in Settings โ†’ SIM-maps and mobile networks โ†’ Resetting settings

If the smartphone doesnโ€™t turn on after cleaning, try the following steps:

  1. Press the Power button + Volume up for 10 seconds to enter Recovery Mode.
  2. Select Wipe & Reset โ†’ Wipe Cache (cleaning the cache will not delete your data).
  3. If this doesnโ€™t work, do Wipe Data (full reset).

To recover deleted files by mistake (if the smartphone is still working) use:

  • ๐Ÿ”„ DiskDigger โ€“ Looks for deleted files in internal memory.
  • ๐Ÿ“‚ Recuva (on PC) โ€“ if you connect your smartphone as a drive.

โš ๏ธ Warning: After resetting to factory settings, all data will be erased, including photos and messages. If you don't have a backup, try connecting your smartphone to your PC in Fastboot mode and copy important files through your computer. ADB pull.

FAQ: Frequent questions about hidden files on Xiaomi

Can I delete the Android folder completely?
No, it will crash all installed applications. This folder stores user program data (e.g. /Android/obb for games or /Android/data for cache) You can only clean the contents of subfolders (e.g., cache), but not the directories themselves.
Why does the memory re-fill after cleaning?
This is due to: Automatic cache recovery by apps (like Facebook or TikTok actively cache content); MIUI background processes that create temporary files (like for performance optimization); Hidden updates to system applications (they download to /data/app); Solution: disable auto-update apps in Google Play and regularly clear the cache through Settings โ†’ Memory โ†’ Cleanup.
How to clean hidden files on Xiaomi without a computer?
Use a combination of standard tools and third-party apps: Enable the display of hidden files in Files (see section above). Install Files by Google and run Clean. In Settings โ†’ Memory โ†’ Cleanup, click Deep Clean. To remove residues of applications, use SD Maid (CorpseFinder section). If you need to clear system folders (e.g. /data/local), without ADB or root, this cannot be done.
Is it safe to use applications like Clean Master?
No, these apps are often: ๐Ÿšซ Start background processes that consume resources themselves. ๐Ÿ“Š Collect data about your apps for targeted advertising. ๐Ÿ”ง They can delete useful files, disguised as "optimization." Better use built-in tools. MIUI or verified applications like SD Maid.
How to clean hidden files on Xiaomi with root rights?
With root, you get full access to the system. To clean: Install Root Explorer or FX File Explorer. Go to the /data and remove: /data/local/tmp โ€” time-file. /data/log โ€” Logic of System Processes. /data/dalvik-cache โ€” Dalvik cache (remove only if you are ready for possible crashes). Use Titanium Backup to remove remnants of uninstalled applications. โš ๏ธ Warning: Deletion of files in /system Even with root can lead to a "brick." Always back up through TWRP pre-massive.