How to remove the remnants of applications on Android Xiaomi: a complete system cleanup

Even after the standard MIUI removal of an application on Xiaomi smartphones, the system is left with tails: cache, temporary files, settings and even fragments of databases, which not only take up precious space in memory, but can cause failures, from slowdowns to errors when installing new versions of programs.

Unlike pure Android, the MIUI shell aggressively caches data, and some system applications (com.miui.analytics, com.xiaomi.midrop) are not removed at all by standard methods. In this article, 5 proven ways to remove remnants of applications on Xiaomi, including hidden folders and system traces, taking into account the features of MIUI 12/13/14 and HyperOS.

Why are there β€œtails” after removing apps?

Android apps store data in multiple locations, and the standard Delete feature affects only a fraction of them:

  • πŸ“ folder /data/data/ β€” It stores settings, databases and app cache, and when you delete it, it stays in the folder, but it becomes inaccessible without root permissions.
  • πŸ—‘οΈ Cash. Dalvik/ART β€” Optimized files to speed up startups, only cleared when restarted or manually.
  • πŸ”— Symbolic links – some applications create links to /system or /vendor, which are not automatically removed.
  • πŸ“Š System Logs β€” MIUI maintains logs of application activity in /data/log, years-long.

For example, after deleting Facebook in memory may remain 500 MB of garbage: image cache, chat databases, and even analytics files com.facebook.katana. And apps like Xiaomi Community (com.xiaomi.vipaccount) leave traces in the back of the web. /data/user_de/0/, Not visible through the standard file manager.

πŸ“Š How often do you remove unwanted apps on Xiaomi?
Once a week.
Once a month
Only when memory ends
Never delete.
I always have a clean system.

Method 1: Manual removal through Settings (without root)

The safest method, but only clears a fraction of the residue, suitable for users without root rights:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Slip on the three points in the upper right corner and select Show all processes (including system processes).
  3. Find the remote application in the list (even if it is marked as β€œRemote”, its data may remain).
  4. Click Warehouse β†’ Clear the cache and Clear the data.
  5. Return to the main menu of the app and select Remove Updates (if the button is active).

For deep cleaning, go to Settings β†’ Memory β†’ Cleanup and run Deep Cleanup.This tool deletes temporary files, but does not touch the system logs and Dalvik cache.

Close all background applications

Connect the charger (the process can take 5-10 minutes)

Make a backup copy of important data

Check the space available (needs at least 1 GB)

-->

⚠️ Note: Do not clear system application data (com.android.settings, com.miui.home) – this may cause a crash MIUI and the need to reset to factory settings.

Method 2: Using ADB to remove residues (advanced)

If manual cleaning didn’t work, connect to your smartphone via ADB (Android Debug Bridge), a method that removes even hidden folders, but requires USB debugging:

  1. Activate Settings β†’ About Phone β†’ MIUI version (stamp 7 times to become a developer).
  2. Return to Settings β†’ Additional β†’ For developers and enable USB debugging.
  3. Connect your phone to your PC, open the command line and type: adb devices (wait for the serial number of the device to appear).
  4. Run the command to remove residues (replace package.name to the application package name): adb shell pm clear package.name adb shell rm -rf /data/data/package.name adb shell rm -rf /sdcard/Android/data/package.name

For mass cleaning of all residues of remote applications, use:

adb shell pm list packages -u | grep 'package:' | cut -f2 -d':' | xargs -n1 adb shell pm clear

ADB Team TeamWhat's he doing?When to use
pm clear package.nameClears the cache and application dataIf the application is deleted, but its data remains
rm -rf /data/data/package.nameRemoves the data folder manuallyIf the pm clear didn't work
pm uninstall -k --user 0 package.nameRemove the application for the current userFor system applications without root

πŸ’‘

To find the name of the remote application packet, use the command adb shell pm list packages | grep "keyword word." For example, to search for Instagram residues, type adb shell pm list packages | grep "insta".

Method 3: Cleaning through Recovery Mode (for experienced)

If the residues of applications cause critical errors (for example, bootloop after removing system software), cleaning through Recovery will help. ART, but does not delete user data:

  1. Turn off your smartphone.
  2. Press Volume Up + Power before the Mi logo appears.
  3. From the Recovery menu, select Wipe & Reset β†’ Wipe Cache.
  4. Confirm the action and restart the device.

For deep cleaning (if the phone is slowing down), choose the Wipe Dalvik Cache, which will delete the optimized files of all applications, but will not affect personal data.

⚠️ Note: Do not choose Wipe Data (full reset) - this will delete all your files, photos and settings. Use this item only if other methods have not helped.

What if Recovery does not start?
If the smartphone is not included in Recovery or hangs on the logo, try: 1. Connect the charger and try again in 10 minutes. 2. Use the combination Volume Down + Power (on some Xiaomi models). 3. Install custom Recovery (TWRP) via Fastboot: fastboot flash recovery twrp.img fastboot twrp.img twrp.img

Method 4: Removing residues with a file manager (with root)

If you have root rights, use Root Explorer or Solid Explorer for manual cleaning.

  • πŸ“‚ /data/data/ β€” It stores all the applications. Only delete the remote folders.
  • πŸ“‚ /sdcard/Android/obb/ β€” Large game cache files (may weigh several gigabytes).
  • πŸ“‚ /data/app-lib/ β€” Application libraries (relevant to older versions) MIUI).
  • πŸ“‚ /data/dalvik-cache/ β€” virtual machine cache ART (Cleanse only if you know what you are doing).

Example: To remove TikTok residues, find and delete folders:

/data/data/com.zhiliaoapp.musically


/sdcard/Android/data/com.zhiliaoapp.musically




/sdcard/Android/obb/com.zhiliaoapp.musically

On Xiaomi models with HyperOS (2026+), the /data/app/ folder can be protected by DM-Verity, which requires you to disable the Magisk verification:

magisk --disable-verity

Method 5: Automated tools (SD Maid, CCleaner)

For users without root suitable specialized utilities:

AnnexWhat cleansesNeed root?
SD MaidCash, empty folders, APK residues, system logsNo (but with root cleansing deeper)
CCleanerCash, history, temporary files.No.
Files by GoogleDuplicate, large files, cacheNo.
Xiaomi Cleaner (built-in)Garbage, cache, APK remnantsNo.

Instructions for SD Maid:

  1. Open the app and give access to the memory.
  2. Go to CorpseFinder (search for remnants of remote applications).
  3. Press Run Now and wait for the scan to be completed.
  4. Check the unnecessary files and click Delete.

⚠️ Note: Do not use the β€œoptimization” features in CCleaner or similar utilities – they often delete useful files. MIUI, And that leads to lags, so just clean the cache and the residue.

πŸ’‘

The most effective method without root is the ADB + SD Maid combination, which removes up to 90% of the residues, including hidden folders and Dalvik cache.

How to Prevent the Storage of Garbage in the Future

Not to have to clean the system regularly:

  • πŸ”„ Turn off automatic application recovery after reset: Settings β†’ Google β†’ Backup β†’ Auto-recovery.
  • 🚫 Don’t use the Play Market Optimizers – most of them load the system themselves.
  • πŸ“¦ Install applications in format APKM or XAPK (through SAI), To avoid duplicate files.
  • πŸ” Periodically check the folder /sdcard/Android/ For the presence of old.obb and.cache files.

On Xiaomi models with HyperOS (e.g. Xiaomi 14, Redmi Note 13 Pro+) enable autocleaning of the cache: Settings β†’ Memory β†’ Autoclean β†’ Enable.

This deletes unnecessary files once a week, but does not touch the app data.

FAQ: Frequent questions about residue removal

Can I remove Xiaomi system apps without root?
Yes, but partially. Through ADB, execute the command: adb shell pm uninstall -k --user 0 name packet For example, to delete Mi Video: adb shell pm uninstall -k --user 0 com.miui.videoplayer The application will disappear for your user, but will remain in the system and will not be updated.
Why did you have 2GB of cash left after the game was deleted?
Games (e.g. Genshin Impact, Call of Duty Mobile) store data in /sdcard/Android/obb/. Delete the folder with the name of the game package manually or through the file manager. For Genshin Impact it is: /sdcard/Android/obb/com.mihoyo.GenshinImpact
How do you know which apps are leaving the most trash?
Use SD Maid (AppControl section) or ADB: adb shell dumpsys package | grep "codePath" This will show the folder size of all installed (and remote) applications.
Can data be recovered after residues have been cleaned?
No. Once you delete folders from /data/data/ or pm clear command, you can't recover data. Always back up via Titanium Backup (requires root) or manually copy files from /sdcard/Android/.
Why did the phone become slower after cleaning up the residue?
You probably deleted the Dalvik/ART cache or system files. Restart the device, MIUI will restore the necessary data. If the lags remain, check the free space (should be at least 10% of the total memory).