Deleting a folder with a game on Xiaomi, Redmi or POCO smartphones often becomes a non-trivial task due to the features of the MIUI file system. Even after uninstalling the game through the application menu, its folder with cache, saves and additional files can take up gigabytes of memory, remaining invisible to standard tools. In this article, we will analyze all the current methods of removal โ from simple to advanced, including working with ADB, hidden directories and restoring access rights.
Xiaomiโs feature is that the system creates several types of folders for games: the main one in /storage/emulated/0/Android/data/, the cache in /storage/emulated/0/Android/obb/, as well as temporary files in /data/local/tmp/. Some games (such as Genshin Impact or Call of Duty Mobile) leave behind tails in the form of configuration files that are not deleted automatically. If you encounter an error โInsufficient memoryโ or want to completely erase all traces of the game before selling this game, this will help to do the system.
1. Delete via the standard MIUI file manager
The most obvious, but not always effective, way is to use the built-in Files by Google or standard MIUI File Manager, which is suitable for deleting visible folders, but often does not show hidden directories or restricted files.
To try this method:
- ๐ Open the Files app (File icon on the desktop).
- ๐ Go to the Internal Memory section โ Android โ data โ obb.
- ๐๏ธ Find a folder with the game name (e.g. com.miHoYo.GenshinImpact) and delete it.
- ๐ Reboot your phone to make the changes take effect.
โ ๏ธ Note: If the folder is not deleted and the message "No permissions" appears, then it is protected by the system. ADB or get root rights.
๐ก
Before deleting, check the game folder size in the storage settings (Settings โ About Phone โ Storage). Sometimes games take up to 10-15 GB, even if you deleted them long ago through the app menu.
2.Using MIUI Cleaner and built-in tools
MIUI has a built-in garbage cleanup tool called the Security App (or โSecurityโ in Russian firmware) that allows you to delete residual game files, but it doesnโt always cope with deep cleaning.
How to use:
- Open the Security app (shield icon).
- Go to the Cleanup section. โ Deep cleaning.
- Select the category โResidual Filesโ or โApp Cacheโ.
- Find the name of the game in the list and click โClearโ.
๐น Limitation of method: MIUI Cleaner does not delete folders in /Android/obb/, if they were created manually or through third-party installers (e.g. APKMirror) they will require manual cleaning to remove them.
3. Removal via ADB (without root rights)
If standard methods donโt work, ADB (Android Debug Bridge) is the most reliable way to delete the game folder without getting root.This method works on all Xiaomi smartphones, including the Redmi Note 12, POCO F5 and Black Shark 5.
Instructions:
- Turn on USB Debugging: Go to Settings โ About Phone. Tap 7 times on MIUI to activate Developer Mode. Go back to Settings โ Additional โ For Developers and turn on USB Debugging.
command-line
Terminal
adb devices(The name of your device should appear).
adb shell rm -rf /sdcard/Android/obb/com. title.games(Replace the com.name.games with a real-life package, such as com.activision.callofduty.shooter for Call of Duty Mobile).
โ ๏ธ Attention: Inappropriate use of rm -rf This can cause system files to be deleted. Always check the path before executing a command!
โ๏ธ Preparation for removal through ADB
4. Manual removal via TWRP (for advanced users)
If you use custom recovery (such as TWRP), you can remove the game folders directly from the file system, including hidden directories, which is suitable for devices with an unlocked bootloader.
Step-by-step:
- ๐ง Put the phone on mode. TWRP (power + Volume Up).
- ๐ Go to the Advanced section โ File Manager.
- ๐ Find ways: /data/data/com.Title: Games (Basic Data) /sdcard/Android/obb/com.Title: Games (additional files)
- ๐๏ธ Select folders and click "Deleteยป.
- ๐ Reboot the phone.
๐น Advantage of the method: TWRP It allows you to delete files that are not available even through ADB, But this method requires unlocking the bootloader, which resets all the data on the phone.
What if TWRP can't see the folder?
5. Reset to factory settings (extreme case)
If a game leaves behind undeleteable files or corrupts system settings (for example, after using modified APKs), the only reliable way is to completely reset, which erases all data on the phone, including accounts, photos and apps.
How to reset:
- Go to Settings โ Additional โ Recovery and Reset.
- Select "Settings Reset."
- Check โClear internal memoryโ (optional).
- Confirm the action and wait for the reboot.
| Deleting method | Need root/ADB? | Removes all traces? | Risk to the system |
|---|---|---|---|
| File manager | โ No. | โ Partially. | โ ๏ธ Low. |
| MIUI Cleaner | โ No. | โ Just the cache. | โ Absent. |
| ADB | โ Yes, but no root) | โ Completely. | โ ๏ธ Medium. |
| TWRP | โ Yeah. + recovery) | โ Completely. | โ ๏ธโ ๏ธ High-pitched |
| Resetting settings | โ No. | โ Completely. | โ ๏ธโ ๏ธโ ๏ธ critical |
โ ๏ธ Warning: Once reset, the phone will return to the "out of the box" state. DCIM If you sell a phone, this method is guaranteed to erase all personal data and traces of games.
๐ก
Factory reset is the only way to 100% delete modified game files, but it erases all the contents of the phone. Use it only as a last resort.
6.How to find hidden folders of games on Xiaomi
Some games (like Honor of Kings or Free Fire) create additional folders in non-obvious places.
- ๐ต๏ธโโ๏ธ /storage/emulated/0/Android/data/ โ baseline.
- ๐ต๏ธโโ๏ธ /storage/emulated/0/Android/obb/ โ Additional files (usually weighing several GB).
- ๐ต๏ธโโ๏ธ /data/local/tmp/ โ installer-file.
- ๐ต๏ธโโ๏ธ /sdcard/Download/ โ Here we can stay. APK game-archive.
- ๐ต๏ธโโ๏ธ /data/media/0/ โ Hidden folders with saves (requires root).
To view hidden folders in MIUI File Manager:
- Open the file manager.
- Click on the three dots in the upper right corner.
- Select โSettings โ Show hidden filesโ.
If you are using Total Commander or FX File Explorer, enable the display of hidden files in the application settings.