How to securely delete hidden files on Xiaomi: 5 proven ways

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!

๐Ÿ“Š How often do you clean up hidden files on Xiaomi?
Once a week.
Once a month
Only when memory ends
Never cleaned.

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.

  1. Open the Explorer app (the folder icon on the desktop).
  2. Tap the three-point menu (โ‹ฎ) top-right.
  3. Select Settings โ†’ Additionally.
  4. 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:

  1. Download Googleโ€™s Platform Tools and unpack the archive.
  2. On your smartphone, turn on USB Debugging: Settings โ†’ About Phone โ†’ MIUI Version (tap 7 times) Settings โ†’ Additional โ†’ For Developers โ†’ Debugging by USB
  3. Connect your phone to your PC and open the command line in the adb.exe folder.
  4. 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:

  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.
  4. 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?
Dalvik-cache is an optimized version of an application created by the Android virtual machine. It speeds up the launch of programs, but when damaged, it can cause errors. Cleaning Dalvik-cache is safe, but when you first start the application after it, they will run slower until the cache recovers.

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:

AnnexAdvantagesDeficienciesReference
Files by GoogleQuick memory analysis, removal of duplicatesDoes not show deep hidden system filesGoogle Play
CCleanerClearing cache, history, temporary filesAggressive Advertising in the Free VersionGoogle Play
SD MaidDeep Cleanup, Search for โ€œDeadโ€ FilesRequires root for full functionalityGoogle Play
1Tap CleanerCache removal with one tapDoes not work with files in /dataGoogle 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:

  1. Load to TWRP (clip Power + Volume Up).
  2. Select Advanced โ†’ File Manager.
  3. 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).
  4. 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 -rf

This 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.

FAQ: Frequent questions about hidden files on Xiaomi

Can I delete the.thumbnails folder? It takes 2GB!
Yes,.thumbnails folders can be deleted, which is a gallery thumbnail cache, and they automatically recover when you view a photo, but they take up a lot of space. To prevent them from being recreated, turn off the option to Create thumbnails in the gallery settings.
After deleting the hidden files, the phone started to lag.
You probably deleted system files or cache of important applications. Try: Reboot the device. Clear the cache via Recovery Mode (Wipe Cache). If the problem persists, reset (Settings โ†’ About Phone โ†’ Reset), but first do a backup.
How to find hidden files of a particular application (for example, TikTok)?
Hidden application files are stored in: /storage/emulated/0/Android/data/<application package> /data/data/<application package> (requires root) For TikTok, the path will be /Android/data/com.zhiliaoapp.musically.Cache folders and files inside can be cleaned.
Why is the memory not freed after the hidden files are deleted?
This can happen for several reasons: Files were deleted from the wrong folder (e.g., you cleared /storage/emulated/0 and the garbage was in /data); the system has not yet updated the free space data (reset the phone); files have been "softly deleted" and are still stored in the cart (check the.Trash folder); applications have restored the cache (e.g., Facebook or Instagram immediately after launch create new temporary files); Use the DiskUsage app to visualize occupied space.
Can I delete hidden files without root and ADB?
Yes, but with limitations. You can: Delete files to /storage/emulated/0 through the explorer (dot folders at the beginning); Clear the application cache in the settings (Settings โ†’ Apps โ†’ Storage โ†’ Clear cache); Use Files by Google to remove debris (but it doesn't see deeply hidden files); Clear system hidden files (/data, /cache) without root/ADB.