Xiaomi Android-based smartphones eventually start to slow down due to a crowded cache of applications, unnecessary temporary files and residual data of remote programs. Even after uninstallation, many applications leave behind tails in the form of folders on the internal drive, registry entries. MIUI and fragments in the section /data/data. This article will help not just remove the application, but completely erase all its traces โ from cache to system files that are not visible through standard settings.
We will look at both basic methods (clearing the cache through the settings menu) and advanced ones using ADB, hidden MIUI functions and third-party utilities. Particular attention will be paid to applications with administrative rights (for example, banking customers or antiviruses) that block standard deletion. Instructions are relevant for all modern models, from Redmi Note 12 to Xiaomi 14 Ultra on Android 12-14 with a MIUI 13-15 shell.
1. Standard cleaning through MIUI settings
The easiest way is to use the built-in MIUI tools. It is suitable for most user applications (social networks, instant messengers, games), but does not delete system files and data protected by root rights.
To clear the cache and data:
- ๐ฑ Open the Settings. โ Annexes โ Application management.
- ๐ Enter the program name in the search bar or find it in the list.
- ๐งน Press Warehouse. โ Clear the cache (delete temporary files) and Clear the data (reset the settings of the application to the factory).
- ๐๏ธ For complete removal, remove the tap (uninstallation).
โ ๏ธ Attention: Clearing the data will result in logging out of accounts in the application (for example, in VKontakte or Telegram) and removing all local settings. The cache can be cleaned without consequences - it will recover the next time the program starts.
โ๏ธ What to do before cleaning the data
2. Deep cleaning through the "Security App"
MIUI includes the proprietary Security app, which offers advanced tools to optimize the system, and allows you to remove residual files, duplicates and debris that are not available through the standard menu.
Instructions:
- Launch the Security app (the shield icon).
- Go to the Cleaner tab.
- Press Deep Clean and wait for the scan.
- In the results, select Leftover files and mark the applications you want to clean.
- Confirm the action with the Clean button.
This method removes:
- ๐๏ธ Cache folders in /storage/emulated/0/Android/data.
- ๐ Temporary files in /data/local/tmp.
- ๐ Symbolic references to deleted APK.
๐ก
If system applications (such as Mi Video or Mi Browser) appear in the list of residual files, do not delete them - this may disrupt the MIUI.
3. Manual deletion of residual files through the conductor
Even after uninstallation, many applications leave folders with data on the internal drive, which can be manually deleted through any file manager (for example, Mi File Manager or Solid Explorer).
Where to look for garbage:
| Type of file | Way | What can be removed |
|---|---|---|
| Cash and user data | /storage/emulated/0/Android/data/[package.name] | The entire application folder (if removed) |
| OBb files (additions for games) | /storage/emulated/0/Android/obb/[package.name] | Files with.obb extension |
| Logs and dumps | /storage/emulated/0/Android/media/[package.name] | Folders logs, crash, dump |
| Configuration files | /data/data/[package.name] | Only with root access! |
โ ๏ธ Note: Do not delete folders of system applications (for example, com.miui.gallery or com.android.settings) โ this may cause a crash MIUI. Also, avoid touching files in the /system rootless.
How to find out the package name of the application?
4. Cleaning through ADB (for power users)
If the application is not removed by standard methods (for example, system software or program with administrator rights), Android Debug Bridge (ADB) will help.
Step-by-step:
- Turn on USB Debugging in Settings โ About Phone โ MIUI version (shap 7 times, then go back to Additional Settings โ For Developers).
- Connect the phone to your computer and confirm the debugging permission.
- Open the command line (cmd) and enter:
adb devices(Your device should be displayed)
adb shell pm list packages | grep 'name packet'(find the exact package name)
adb shell pm clear com.example.app(clears data and cache)
adb uninstall --user 0 com.example.app(Removes the application for the current user)
To completely remove system applications (requires an unlocked bootloader):
adb shell
su
mount -o rw,remount /system
rm -rf /system/app/NameFolds
rm -rf /system/priv-app/Names๐ก
The pm clear command resets the app to its original state, but does not delete it. Use uninstall to uninstall.
5. Resetting the application settings (without deleting)
If the program doesn't work properly, but you don't want to delete it, you can reset it to factory settings, which is useful for system utilities (such as Mi Browser or Camera) that can't be uninstalled.
How to reset:
- ๐ง Go to Settings. โ Annexes โ Application management.
- ๐ Select the desired application and click โฎ โ Resetting settings (or Resetting Preferences).
- ๐ Confirm the action.
This method:
- โ Resets all permissions (access to camera, microphone, etc.).
- โ Remove saved settings (for example, the theme in Mi Browser).
- โ Does not affect the cache and user data (for this purpose, use Clear Data).
6. Removal of applications with administrator rights
Some programs (antiviruses, bank clients, VPNs) request device administrator permissions, which blocks their standard removal, as the system issues an error: โYou canโt delete an application with active administrator rights.โ
To uninstall this software:
- Go to Settings โ Passwords and Security โ Device Administrator Rights.
- Uncheck the problem application.
- Return to Application Management and remove it in the standard way.
If there is no โAdministratorโs Rightsโ clause:
- ๐ Check the section Special Permits โ Device administrators.
- ๐ก๏ธ For MIUI 14+ The path may be: Settings โ Annexes โ Permits โ Additionally. โ Device administrators.
โ ๏ธ Note: Do not disable administrator rights for system services (such as Find My Device or Mi Cloud) โ this will disrupt phone search and sync functions.
7. Cleaning automation: planner and third-party utilities
To avoid manual cleaning of applications, you can set up automatic cleaning or use specialized programs.
Option 1: MIUI Planner
- ๐ Open Security. โ Cleanup โ โ๏ธ Settings.
- ๐ Turn on Auto Cleanup and select the frequency (daily/weekly).
- ๐ In the Exceptions section, add apps that donโt need to be cleaned (e.g., messengers with important files).
Option 2: Third-party utilities
| Annex | Functions | Features |
|---|---|---|
| SD Maid | Removal of residual files, cleaning of databases | Requires root for full functionality |
| CCleaner | Cache cleanup, autoboot management | Free version with restrictions |
| Files by Google | Search for duplicates and large files | No deep cleaning of system data |
โ ๏ธ Note: Cleaning applications (especially root-access) can delete critical system files. โ System system โ Backup.