How to find hidden folders on Xiaomi and securely clean your phoneโ€™s memory

Xiaomiโ€™s internal memory (including the Redmi and POCO lines) often clogs up unexpectedly quickly โ€” even if you regularly delete photos, videos, and unwanted apps โ€” not just the app cache, but the hidden system folders that MIUI creates for business purposes, which can take up 1 to 10 GB of space but are not displayed in a standard file manager.

Compounding the problem, Xiaomi is using caching to speed up the interface, and it also keeps backups of updates, log files, and temporary application data. For example, a MIUI/Backup folder can weigh several gigabytes if you havenโ€™t reset your phone in a long time. In this article, weโ€™ll look at how to find these hidden folders, which ones can be removed without risk to the system, and which ones canโ€™t be touched.

Why Hidden Folders Take So Much Space on Xiaomi

The MIUI operating shell (even in the latest versions 13-14) actively creates utility files that are not visible to the user by default.

  • ๐Ÿ“ Cache applications and systems. /data/dalvik-cache or /cache They store optimized data for fast downloading of programs. 2โ€“3 GB.
  • ๐Ÿ”„ Backup updates. Xiaomi saves firmware files in MIUI/Update or /cache/ota, Even after installation, one firmware weighs. 1,5โ€“2,5 GB.
  • ๐Ÿ“ Log files and dumps. /data/anr or /data/tombstones They contain error reports. They rarely exceed 100 MB, but there could be hundreds of them.
  • ๐ŸŽฎ Data from games and heavy applications, such as Genshin Impact or PUBG Mobile creates hidden folders with texture cache that are not cleared through game settings.

MIUI also hides some user folders if they are marked as system folders (e.g..thumbnails for thumbnails or.nomedia for files that shouldn't be displayed in the gallery), which can take up to 500MB in photo thumbnails alone.

โš ๏ธ Note: Not all hidden folders can be deleted! /data/app This will result in the reset of all installed applications, and the cleanup will be /system It will make the phone inoperable. We'll go into the safe methods below.

How to enable the display of hidden folders on Xiaomi

By default, the MIUI file manager (or third-party applications like Total Commander) does not show hidden files.

  1. Open the built-in "Files" (folder icon on the desktop).
  2. Slip on three points in the upper right corner โ†’ select Settings.
  3. Activate the switch to show hidden files.
  4. Return to the root directory (/storage/emulated/0/) and update the list (pull the screen down).

If you are using Total Commander or FX File Explorer, the path will be similar, but with minor differences:

  • ๐Ÿ“‚ Total Commander: Settings โ†’ Display โ†’ Show hidden files.
  • ๐Ÿ” V FX File Explorer: Menu โ†’ Settings โ†’ Show hidden files.

Once activated, you will see folders and files whose names start with a dot (e.g.,.data,.miui), but root system directories (like /data or /system) will still be unavailable without root permissions.

๐Ÿ“Š What file manager do you use on Xiaomi?
Built-in "Files" from MIUI
Total Commander
FX File Explorer
Solid Explorer
Other

List of safe hidden folders that can be cleaned

Not all hidden folders are equally useful. Below is a spreadsheet with directories that can be cleaned without risk to the system, and those that are not recommended to be touched.

folderWayCan I remove it?What happens after cleaning up?
.thumbnails/storage/emulated/0/DCIM/.thumbnailsโœ… Yes.The miniatures of the photos will be removed (they will be restored at the next gallery opening).
MIUI/Backup/storage/emulated/0/MIUI/Backupโœ… Yes (partially)Free up space from old backups (but donโ€™t delete current backups!).
Android/data (game cache)/storage/emulated/0/Android/data/<game name>โœ… Yes (cache folders only)The game will reload the data at the next launch (the Internet may be required).
Download/.temp/storage/emulated/0/Download/.tempโœ… Yes.Temporary download files (e.g., under-quality videos) will be deleted.
data/dalvik-cache/data/dalvik-cacheโŒ No, no root)The system will stop running applications before restarting.

Special attention should be paid to the MIUI/Update folder, which stores firmware files. If you do not plan to roll back on the old version of MIUI, they can be deleted. However, do not touch files with the.zip extension if they were downloaded manually for later updates.

Check the folder.thumbnails in DCIM|Clean it up. Download/.temp time-file|Remove old backups from MIUI/Backup (except for)|Clear the game cache in Android/data/<game-name>/cache|Check the folder. MIUI/Update squirrel-proof-->

How to Clean Hidden Folders Without Root Rights

If you don't have a superuser (root) right, you can still make room using standard MIUI tools and third-party utilities.

Method 1: Cleaning through "Storage" in the settings

  1. Open the Settings โ†’ Storage.
  2. Slip on Clean in the section "Unnecessary files".
  3. Select categories for cleaning: ๐Ÿ—‘๏ธ App cache (safe). ๐Ÿ“ฅ Uploaded files (check manually!). ๐Ÿ” Logs and dumps (can be removed).

Clean up

Method 2: Use Files from Google

Files by Google (available in the Play Market) can find and offer to delete unnecessary files, including hidden ones:

  1. Install and open Files by Google.
  2. Go to the Cleanup tab.
  3. Select Unnecessary Files โ†’ Temporary Application Files.
  4. Check the list and click Clear.

Method 3: Manual cleaning through ADB (for advanced)

If you are familiar with ADB (Android Debug Bridge), you can delete some hidden files via the command:

adb shell pm clear com.miui.cleanmaster # Cache cleaner


adb shell rm -rf /sdcard/DCIM/.thumbnails # Removal of thumbnails

For this:

  1. Turn on USB Debugging in Settings โ†’ About Phone โ†’ MIUI version (tap 7 times according to version, then go back to Additional โ†’ For Developers).
  2. Connect your phone to your PC and execute the commands above.

Decisions:

  1. Reboot your phone and try again.
  2. Use another file manager (e.g. Solid Explorer with root access, if any).
  3. Check the file for employment via ADB: adb shell lsof | grep "name file" If the file is used by the process, terminate it via adb shell kill <PID>.
  4. Reset the partition cache (does not delete user data): Turn off the phone. Press Power + Volume up to log into Recovery. Select Wipe Cache Partition โ†’ Reboot.

If none of the methods worked, the file might be corrupted, in which case only factory resets would help (but this is a last resort!).

How to check file system integrity on Xiaomi
If the phone is rebooted frequently or files are not deleted, the file system may be damaged to verify its integrity: 1. Connect the phone to the PC and perform in ADB: adb shell e2fsck -n /dev/block/mmcblk0pX (where X is the partition number, usually p28 for /data). 2. If errors are found, do a check with the corrective: adb shell e2fsck -f -y /dev/block/mmcblk0pX โš ๏ธ It might take up to 30 minutes and requires at least a battery charge 50%.

How to Prevent Hidden Files from Filling Memory in the Future

To prevent hidden folders from taking up gigabytes of memory, follow these tips:

  • ๐Ÿ“ฑ Turn off automatic backup in Settings โ†’ Xiaomi account โ†’ Cloud. โ†’ Backup (if not used).
  • ๐ŸŽฎ Limit the cache of games in their settings (for example, in Genshin Impact you can reduce the quality of textures).
  • ๐Ÿ”„ Clean the cache regularly through Settings โ†’ Warehouse โ†’ Clean (sufficient 1 time per month).
  • ๐Ÿ“ธ Use cloud-based photo services (like Google Photos) to avoid storing originals on your phone.
  • ๐Ÿ”ง Disable unnecessary system applications through Settings โ†’ Annexes โ†’ Manage applications (such as Mi Video or Mi Music if you donโ€™t use them).

Also worth keeping an eye out for MIUI updates, newer versions (starting with 13) have introduced Deep Cleanup, which automatically finds and prompts you to delete unnecessary system files, to activate it:

  1. Go to Settings. โ†’ Warehouse.
  2. Slip on Deep Cleaning (may be called Recommendations).
  3. Select files to delete and confirm.

๐Ÿ’ก

Regularly cleaning hidden folders (1 every 2-3 months) can free up to 3-5 GB of memory on Xiaomi without deleting personal data.

FAQ: Frequent questions about hidden folders on Xiaomi

Can I delete the Android/obb folder? Is it a hidden folder?
The Android/obb folder is not hidden, but it contains additional game and app data (such as graphics for Genshin Impact or Call of Duty Mobile). It is not recommended to delete it because the games will stop working or will download data again. However, if you delete the game, you can manually clean its folder in obb.
Why is the memory filled again after cleaning the hidden folders?
This is normal MIUI behavior. System and applications are constantly creating new cache files. To slow down the process: Turn off background activity of unnecessary applications in Settings โ†’ Battery โ†’ Consumption Management. Limit cache for individual applications through Settings โ†’ Applications โ†’ Storage. You can't completely stop filling up memory, but you can reduce its speed.
How to find hidden folders on Xiaomi without a file manager?
Without a file manager, you can use: ADB (adb shell ls -la /sdcard/ will show all files, including hidden files); Terminal (installe Termux and type ls -a in the root directory); Windows Explorer (plug your phone over USB in File Transfer mode and enable the display of hidden files in the folder settings).
What happens if you delete the MIUI folder completely?
The MIUI folder contains critical data for the shell to work, including: Design themes, system application settings, update files. Deleting it completely will cause interface failures, themes to disappear, and the possible inability to update MIUI. Only remove subfolders like Backup or Update if you are sure of their content.
How to clean hidden folders on Xiaomi with root rights?
If you have root, you can use Root Explorer or ADB commands with superuser rights. e.g. su rm -rf /data/local/tmp/* rm -rf /cache/* Careful: Deleting files in /system or /data/data can render the phone inoperable. Before cleaning, make a full backup via TWRP.