How to delete hidden files on Xiaomi Android smartphones: 5 proven ways

Hidden files on Xiaomi, Redmi or POCO smartphones take up precious space in memory, slow down the system and may contain remnants of deleted applications, cache or even malicious elements. Unlike regular files, they do not appear in standard Explorer, but they can be detected using special tools or commands. In this article, we will discuss 5 working methods for finding and removing hidden files on MIUI โ€“ from simple ways through embedded settings to advanced techniques using ADB.

It is important to understand that not all hidden files are safe to delete, some of which are critical to operating systems (e.g.,.nomedia or Android/data folders), we will explain in detail which files can be deleted without risk and which should not be touched, and you will learn how to distinguish system debris from useful hidden data and avoid errors during cleaning.

Why do hidden files appear on Xiaomi?

Hidden files on Xiaomi are not always caused by viruses or crashes, but are usually created by:

  • ๐Ÿ“ฑ System MIUI โ€” To store temporary data, logs (.log), configurations (.conf) or backups.
  • ๐ŸŽฎ Games and applications โ€“ many programs (for example, PUBG Mobile, Genshin Impact saves cache in hidden folders like com.tencent.ig.
  • ๐Ÿ”„ Software updates โ€“ after installing updates, temporary files remain in folders like /cache or /data/local/tmp.
  • ๐Ÿ›ก๏ธ Antivirus and Optimizers โ€“ Xiaomiโ€™s Security App Can Create Hidden Scan Reports.

Most of these files are harmless, but over time they accumulate and take up gigabytes of memory. For example, the thumbnails folder can weigh up to 1-2 GB, even though the user does not see it. And the cache of games like Call of Duty Mobile sometimes reaches 5-7 GB and does not clear automatically.

๐Ÿ“Š How often do you clean up hidden files on your smartphone?
Once a month
Only when memory ends
Never cleaned.
Using automatic cleaning.

Method 1: Viewing hidden files through a standard MIUI Explorer

The easiest method is to enable the display of hidden files in Xiaomiโ€™s standard Explorer.This works on all devices with MIUI 12/13/14 (including Redmi Note 12, POCO X5, Xiaomi 13T, etc.).

  1. Open the Files app** (Folder icon).
  2. Tap on three points (โ‹ฎ) in the upper right corner and select Settings.
  3. Activate the switch to show hidden files.
  4. Go back to the root catalogue (/storage/emulated/0/) and check the folders: ๐Ÿ“ Android/data โ€” cache; ๐Ÿ“ DCIM/.thumbnails โ€” photo/video sketches; ๐Ÿ“ Download/.temp โ€” time-loading; ๐Ÿ“ MIUI/backup โ€” backup.

Now you can manually delete files that you don't need, but be careful not to touch folders with names like system, vendor, etc., which can cause MIUI to crash.

Delete the.thumbnails folder (sketch)

Clear Download/.temp (Temporary Files)

Remove old logs in MIUI/debug_log

Clear the cache in Android/data/<packet>/cache (Remote applications only)-->

โš ๏ธ Note: If you see files with the.apk or.zip extension in folders like /data/local/tmp, Do not remove them during the update. MIUI. This could interrupt the firmware process.

Method 2: Use a file manager with root rights (for advanced ones)

If your Xiaomi has an unlocked bootloader and Magisk (root rights) installed, you can use powerful file managers like Root Explorer or Solid Explorer, which allow you to access system partitions where most of the garbage is hidden.

Instructions:

  1. Install Root Explorer from Google Play.
  2. Provide root access at the first start.
  3. Go to the root directory (/) and open folders: /data/local/tmp # Temporary update files /cache # System cache /system/lost+found # Remains after crashes
  4. Delete unnecessary files, but do not touch them: ๐Ÿšซ /system, /vendor โ€” critical system files; ๐Ÿšซ /data/data โ€” Application data (may break programs).

With root rights, you can also clean Dalvik-cache (folder) /data/dalvik-cache), But after cleaning it up, it's recommended that you restart the device.

What if after deleting files, the smartphone began to slow down?
If Xiaomi started to work more slowly after cleaning the hidden files, try: 1. Reboot the device (long hold of the power button โ†’ Reboot). 2. Clear the cache in Settings โ†’ Apps โ†’ App Management โ†’ Cash. 3. Run the Security App and perform Deep Cleanup. If the problem remains, important system files may have been deleted. In this case, only a factory reset will help (Settings โ†’ About Phone โ†’ Reset).

Method 3: Cleaning with MIUI Hidden Settings (Hidden Menu)

MIUI has a hidden menu for advanced system setup where you can clear hidden cache and temporary files.This method does not require root rights and works on most devices (including Redmi 10, POCO F4, Xiaomi 12 Lite).

How to open MIUI Hidden Settings:

  1. Open the Phone app and enter the code: ##4636###

โš ๏ธ Note: Not all codes work on new versions MIUI 14+. If ##4636### doesn't work, try the alternative code: ##2664### It opens the battery test menu, which also has the option of cleaning the cache.

Method 4: Delete hidden files via ADB (without root)

If standard methods donโ€™t work, you can use Android Debug Bridge (ADB), a tool to control your smartphone through your computer, which is suitable for removing hidden files that you canโ€™t access through Explorer.

Step-by-step:

  1. Download ADB Tools on PC.
  2. Turn on USB debugging on Xiaomi: Settings โ†’ About Phone โ†’ MIUI version (tap 7 times to become a developer) โ†’ Additional settings โ†’ For developers โ†’ Debugging on USB.
  3. Connect your smartphone to your PC and open Command Prompt (Windows) or Terminal (Mac/Linux) in the adb folder.
  4. Follow the commands: adb devices # Check the connection adb shell # Go to the shell of the smartphone ls -la /sdcard/ # View hidden files on the memory card rm -rf /sdcard/.thumbnails # Delete sketches (example)

Through ADB, you can remove:

  • ๐Ÿ—ƒ๏ธ.thumbnails,.face (sketch and facial recognition data);
  • ๐Ÿ“‚ /data/local/tmp (temporary update files);
  • ๐Ÿ“„.log,.tmp in application folders.

๐Ÿ’ก

Before deleting files via ADB, back up your important data. the adb pull /sdcard/Backup/ ~/Desktop/ command will copy the Backup folder from your phone to your desktop.

Method 5: Automatic Cleaning with Security App

Xiaomiโ€™s built-in Security App can find and remove hidden debris, including:

  • ๐Ÿ—‘๏ธ Residual files after uninstallation of applications;
  • ๐Ÿ“ Duplicate photos and videos;
  • ๐Ÿ” System process cache;
  • ๐Ÿ“Š Large files (>50 MB that have not been used for a long time.

How to start a deep cleaning:

  1. Open the "Security" (Shield icon).

Important: Security does not delete critical system files, but it can skip some hidden folders (like game cache).

Table: Which hidden files can be deleted and which can not

File/folder typeCan I remove it?Effects of removalRecommendation
.thumbnailsโœ… Yes.Photo/video sketches will be recreatedRemove once every 1-2 months
Android/data/<package>/cacheโœ… Yes (for remote applications only)Cash will be restored at the next launch of the programCleaning after uninstallation of games
/data/local/tmpโœ… Yes.Temporary update filesRemove after successful MIUI update
MIUI/debug_logโœ… Yes.Logs of the system (not critical)Cleaning up when memory is lacking
/system, /vendorโŒ No.System failure, inability to loadDon't touch without root and backup.

FAQ: Frequent questions about hidden files on Xiaomi

Can I delete the Android/obb folder? It takes up a lot of space.
The obb folder contains additional data for games and applications (such as graphics for Genshin Impact or Call of Duty), which can only be deleted for games that you have uninstalled. If the game is still installed, removing obb will lead to launch errors.
After the hidden files were cleaned, the photos were lost.
Most likely, files from the DCIM or Pictures folder were deleted. Try: Check the Recycle Bin in the Gallery app. Use the data recovery software: DiskDigger, Recuva (root required). If photos are synced with Google Photos or Mi Cloud, check the cloud.
How to disable the creation of hidden files (e.g.,.thumbnails)?
It is impossible to completely disable the creation of hidden files, but you can reduce their number: ๐Ÿ“ท Turn off creating thumbnails in the settings "Galleryยป. ๐ŸŽฎ Limit the game cache in the application settings (Settings) โ†’ Annexes โ†’ Application management โ†’ Cash). ๐Ÿ”„ Clean the cache regularly through โ€œSecurityยป.
Why is the memory not freed after the hidden files are deleted?
This can happen for several reasons: ๐Ÿ”„ Files are still busy with system processes (reboot your smartphone). ๐Ÿ—‘๏ธ Only the file shortcuts are removed, and the data itself remains (use) ADB or root manager). ๐Ÿ“Š Memory fragmented (perform optimization in "Securityยป).
Can I delete hidden files on Xiaomi without a computer?
Most of the methods in this article do not require a PC: ๐Ÿ“ฑ Standard conductor MIUI (method); ๐Ÿ›ก๏ธ Annex "Security"** (Method 5); ๐Ÿ” Hidden menu ##4636## (method 3). ADB root managers are only needed for deep cleaning of system partitions.