Hidden folders on Xiaomi, Redmi or POCO smartphones often take up precious space in memory, but they canβt be deleted by standard methods. These directories are created by a system, applications or even viruses β and can contain both important data (caches, settings) and garbage. The problem is that most users donβt understand which folders can be touched and which ones can not. Deletion errors can lead to MIUI malfunction, loss of functionality or even a device βbrickβ.
In this article, we will discuss 5 ways to remove hidden folders, from simple (via the built-in file manager) to advanced (using ADB and custom recap), you will learn how to distinguish system directories from unnecessary ones, what tools to use for safe cleaning, and what to do if after deleting the smartphone began to glittle. Spoiler: 80% of the time, standard MIUI tools are enough, but there are exceptions.
Why are hidden folders appearing on Xiaomi?
Hidden folders on Xiaomi fall into three categories, and each has a purpose: System folders, created by MIUI to store configurations, logs and temporary files, such as the.miui folder in the root directory is responsible for themes and personalization, and.thumbnails is responsible for thumbnails of images, which are not recommended to be deleted unless you are prepared for consequences such as resetting or download errors.
The second category is application folders, and many programs (especially instant messengers, social media, and games) create hidden directories for cache, databases, or downloaded files, like.Telegram or.WhatsApp can weigh gigabytes, but if they are cleaned, they will lose media and chat history.
The third group is suspicious folders that appear without your knowledge.
- π Virus residues (e.g..com.android.XXX with unknown scripts).
- π Root rights artifacts (if you previously obtained root through Magisk or SuperSU).
- π The rubbish after the firmware (folders like.OTA or.update if the update is incorrect).
Before you delete something, check the contents of the folder through the file manager. If you have files inside that have.apk,.dex or.sh extensions, that's potentially dangerous. But folders with cache or thumbnails (.thumbdata) can be cleaned without risk.
β οΈ Note: Folders with a dot at the beginning of a name (.number) are not always garbage,.android_secure Stores data of protected applications, and its removal will lead to errors in Google Play.
Method 1: Delete via a standard file manager
The easiest method is to use the built-in file manager from Xiaomi (Files by Google is also good), which shows hidden folders, but you need to enable the appropriate setting.
Instructions:
- Open the Files app (Blue folder icon).
- Slip on three dots in the upper right corner β Settings.
- Activate the Toggle to Show Hidden Files.
- Go back to the root directory (/storage/emulated/0/) and find the folder with the dot at the beginning (e.g.,.Trash or.data).
- Hold your finger on the folder β select Delete.
What can be removed without risk?
- ποΈ.Trash β File Manager Recycle Bin (here are files you deleted).
- πΌοΈ.thumbnails β thumbnails (automatically restored).
- π±.estrongs β cache of third-party file managers (for example, ES Conductor).
What can't be removed?
- π«.android_secure β secure application data.
- π«.MIUI β System settings of themes and design.
- π«.Data β Critical application files (deleting them will lead to their collapse).
βοΈ Secure Cleanup through File Manager
β οΈ Warning: If the.thumbnails folder is removed, the gallery is slowing down, don't be afraid. The system will rearrange the thumbnails within 5-10 minutes. If the brakes are still there, clear the Gallery app cache in the settings.
Method 2: Use of ADB (for power users)
If the hidden folder is not deleted through the file manager (for example, due to rights restrictions), Android Debug Bridge (ADB) will help.This method requires connecting the smartphone to the PC and basic command line knowledge.
Preparation:
- Download ADB Tools for Windows/macOS/Linux.
- Turn on the smartphone Developer Mode: go to Settings β About Phone β MIUI version and tap 7 times on this item.
- Return to Settings β Additional β For developers and activate Debugging over USB.
- Connect your smartphone to your PC and confirm your trust in the device.
Commands for removal:
adb shell
su
rm -rf /sdcard/.name folderReplace the folder name with a real name (e.g.,.Trash). If the su command doesn't work, you don't have root rights.
Alternative (without root):
adb shell
rm -rf /storage/emulated/0/. folder nameWhat if the ADB canβt see the device?
Advantages of the method:
- β It works with protected folders (if there is root).
- β You can delete files recursively (together with attached directories).
Risks:
- β A team error can erase important data.
- β Without root, some folders will remain inaccessible.
π‘
ADB is a powerful tool, but it requires caution. Always check the path to the folder before deleting. A single-letter error (e.g. rm -rf /sdcard/ instead of /sdcard/.Trash) can erase all data on the device!
Method 3: Removal via TWRP (for stitched devices)
If your Xiaomi has a custom TWRP recavator installed, you can remove hidden folders directly from it, which is suitable for users who have already unlocked the bootloader and stitched through an alternative firmware.
Step-by-step:
- Turn off your smartphone and press Volume Up + Power to enter TWRP.
- Select Advanced β File Manager.
- Go to /data/media/0/ (similar to /sdcard/).
- Find the hidden folder (starts with a dot) and highlight it.
- Press Delete and confirm the action with the swipe.
Advantages of TWRP:
- π§ Full access to all folders, including system folders.
- π‘οΈ You can make a backup before deleting (Backup section).
- π It works even if it does. MIUI loadless.
Limitations:
- β οΈ Requires an unlocked bootloader (the procedure erases all data!).
- β οΈ Incorrect actions in TWRP It could lead to a "brick".
π‘
Before deleting folders via TWRP, back up /data. To do this, select Backup β Select Partitions β Data from the main recavator menu and swipe to confirm. The backup will take up space on the memory card, but will save your data in case of an error.
Method 4: Cleaning through applications (without root)
If you don't want to mess with ADB or TWRP, you can use third-party apps. They don't give you the same control as manual methods, but they're safer for beginners.
Top.-3 applications for working with hidden folders:
| Annex | Functions | Need root? | Reference |
|---|---|---|---|
| Files by Google | Shows hidden files, cleans cache, analyzes garbage | β No. | Google Play |
| FX File Explorer | Advanced Manager with support for root, FTP, cloud | β οΈ Optionally. | Google Play |
| SD Maid | Automatic garbage cleaning, search for duplicates, database analysis | β οΈ For deep cleaning, yes. | Google Play |
How to clean hidden folders with SD Maid:
- Go to CorpseFinder (search for remnants of remote applications).
Warning:
β οΈ Attention: Apps like SD Maid or CCleaner are sometimes deleted too aggressively, affecting system files. Before mass cleaning manually check what is deleted.android_secure It may be labeled as βjunk,β but removing it will disrupt secure applications.
Method 5: Reset to factory settings (extreme case)
If the hidden folders take up gigabytes and you can't delete them, you get a hard reset, which erases all the data on the device, including the hidden directories, but returns the smartphone to its "clean" state.
How to make a reset on Xiaomi:
- Go to Settings β About the phone β Reset settings.
- Choose to erase all data.
- Enter your password (if installed) and confirm.
- Wait until it is completed (it will take 5-15 minutes).
What will be removed:
- π± All user data (photos, videos, documents).
- π± Installed applications and their settings.
- π± Hidden folders, including system folders (they will be restored automatically).
- π± Google and Mi Accounts (you will need to log in again).
How to prepare for the reset:
- π Backup important data via Mi Cloud or Google Drive.
- π Write down logins/passwords from accounts (they will be required after resetting).
- π Remove the memory card if it is used (the data on it will not be affected).
When the dumping doesn't help:
- β If hidden folders appear because of a virus, after reset, they can return (you need to scan the device with an antivirus).
- β If the folders are associated with firmware (for example,.OTA) β They will be restored at the next update.
π‘
Factory reset is a "nuclear bomb" to solve problems. Use it only if other methods have failed. Once reset, the device will become "like new," but all data will be lost irrevocably (unless there was a backup).
What to do if after deleting the folder the smartphone glitches?
Deleting critical hidden folders can cause crashes: apps crash, MIUI slows down, or the device doesn't turn on. Don't panic - in most cases, the problem can be fixed.
Recovery methods:
| Problem. | Decision |
|---|---|
| Apps are dying | Clear the problem app cache in Settings β Apps or reinstall it. |
| Gallery doesn't show photo | Delete the.thumbnails folder (it will recreate) or reboot the smartphone. |
| The smartphone is off. | Press Volume Up + Power to log into Fastboot, and run the firmware through the Mi Flash Tool. |
| Mistakes in MIUI appear | Reset settings through Settings β Additional β Restore and Reset. |
If the smartphone does not turn on:
- Connect it to your PC and check if the Windows Device Manager defines it as Qualcomm HS-USB QDLoader 9008.
- If yes, run the firmware through the Mi Flash Tool in EDL mode.
- If not, try charging the battery for 30 minutes (sometimes the discharge blocks the onset).
Important: If you delete the folder.MIUI or.android_secure, The only reliable way to recover is to flash through Fastboot. Attempt to restore from backup may fail due to corrupted system data.