What to remove on Xiaomi without risk to the system: tips with 4PDA

Xiaomi’s MIUI-based smartphones are known for their functionality, but over time they accumulate tons of unnecessary files, from remnants of deleted apps to duplicate media. 4PDA forum users have been testing safe cleanups for years to make room without compromising system stability. This article has compiled proven methods, from manually cleaning cache to deleting preinstalled bloat with ADB, which are recommended by experienced users.

It is important to understand that not all files can be deleted without consequences, for example, cleaning the /data/dalvik-cache folder will lead to a cyclical reboot of the device, and removing the system APKs without root rights will return them after a restart, we will analyze which files and applications can be deleted on Xiaomi without the risk of β€œbricking”, and also provide lists of safe commands for ADB and TWRP.

1. Systemic garbage: what can be cleaned without consequences

The first thing to delete is the temporary files that MIUI creates while it's working, which take anywhere from 500MB to 2-3GB depending on user activity.

  • πŸ“ App cache: folders /data/data/*/cache and /cache. Cleaning them won’t hurt, but apps will have to re-upload data the next time they run.
  • πŸ—‘οΈ Download folder: This is where you can download from browsers, messengers and email, often containing duplicates and outdated files.
  • 🎬 Media miniatures: folder DCIM/.thumbnails. You can delete the system will restore the preview the next time you view it.
  • πŸ“¦ Remains of updates: folder /cache/ota (if the update has been successful, or /data/ota_package.

For cleaning without root rights:

  1. Open Settings β†’ Memory β†’ Clean (newer versions of MIUI may have different paths).
  2. Select "Deep Clean" and select "App Cache", "Unused Files", "Update Remains".
  3. Click "Clear" and confirm the action.

⚠️ Note: Do not manually clean the System Files section through the standard menu – this can remove critical data for work MIUI.

πŸ“Š How often do you clean your Xiaomi cache?
Once a week.
Once a month
Only when memory ends
Never cleaned.

2. pre-installed applications (bloat): what can be removed

Xiaomi is known for an abundance of pre-installed services, many of which duplicate features or are not used at all. 4PDA a list of safe applications for removal (without root they will roll back after the restart, but the place will be vacated temporarily) ADB magisk.

AnnexPackageCan I remove it?Effects of consequences
Mi Browsercom.android.browserYes.The standard browser will disappear (use Chrome or another)
Mi Musiccom.miui.playerYes.Removes the music player (alternative: Spotify, VLC)
Mi Videocom.miui.videoplayerYes.The standard video player will disappear
Mi Paycom.mipay.walletYes (unless you use it)Mi Pay will stop working (alternative: Google Pay)
Cleaner (Safety)com.miui.cleanmasterNo.It can disrupt the system optimizer.

For removal via ADB:

  1. Connect your phone to your PC and enable USB Debugging in Settings β†’ About Phone β†’ MIUI version (click 7 times, then go back to Additional Settings β†’ For Developers).
  2. Open the command line and type: Adb devices Make sure the device is defined.
  3. Run the command to delete (e.g. for Mi Browser): adb shell pm uninstall -k --user 0 com.android.browser

⚠️ Warning: Deleting com.miui.home or com.android.settings will cause the system to fail. TWRP.

USB debugging enabled

Installed ADB drivers on PC

Backup of important data is made

The device model has been tested (some packages are unique to the series)

-->

3. Duplicates and unnecessary media files

Photos, videos and audio files are often duplicated due to synchronization with clouds (Mi Cloud, Google Photos) or moving between folders.

  • πŸ” Use applications like Files by Google or SD Maid – they can find duplicates by hash.
  • πŸ“Έ Check the folders: DCIM/Camera β€” photo Pictures/Screenshots β€” screenshot WhatsApp/Media β€” messenger Telegram/Telegram Images - files from Telegram
  • 🎡 Remove unused ringtones and melodies from /system/media/audio (root).

For automation:

  1. Install Google Files from the Play Market.
  2. Open the tab "Clean up" β†’ "Duplicates of files".
  3. Select unnecessary copies and click "Delete".

πŸ’‘

Before mass media removal, check to see if the files are used as wallpaper or alarm melodies, such as wallpaper stored in /data/system/users/0/wallpaper.

4.Dalvik and ART cache: when and how to clean

Android creates optimized versions of apps in the /data/dalvik-cache folder (or /data/art in newer versions). Cleaning this section will speed up the phone's work, but you need to be careful:

  • ⚑ When to clean: After mass removal/update of applications, brakes and system hangs, manual firmware updates through TWRP.
  • ⚠️ Risks: When cleaned without custom recovery, the phone can boot longer (the system will recover the cache automatically).

Instructions for TWRP:

  1. Load to TWRP (clip Power + Volume Up).
  2. Go to Advanced β†’ File Manager.
  3. Find the /data/dalvik-cache folder and delete its contents.
  4. Restart the device (the first boot will take 5-10 minutes).
What happens if you delete dalvik-cache without TWRP?
If you delete the dalvik-cache folder through a standard file manager without root, the system will restore it the next time you run the applications, but this can cause temporary lags, in the worst case, a cyclical reboot if the files were damaged during the deletion process.

5 Logs and dumps: hidden memory eaters

MIUI maintains detailed logs of system events that can take up to 1 GB in /data/log, /data/tombstones (error dumps) and /data/anr (freeze logs) folders, which can be deleted without consequences, but you need root or ADB to access.

List of safe folders for cleaning:

  • πŸ“œ /data/log β€” system-log.
  • ⚰️ /data/tombstones β€” dump-hole.
  • ⏳ /data/anr β€” logs of appendices.
  • πŸ“‘ /data/misc/bluetooth β€” Bluetooth cache (if there are no connection issues).

For cleaning through ADB:

adb shell


su




rm -rf /data/log/*




rm -rf /data/tombstones/*




rm -rf /data/anr/*




exit




exit

⚠️ Note: Delete files in /data/misc/wifi If you don't want to re-enter your passwords, don't touch this folder.

6 Remains of Remote Applications and Updates

When uninstalling applications through the Play Market or settings MIUI often remain:

  • πŸ—ƒοΈ Folders with data in /data/data/[package /data/user/0/[packet].
  • πŸ“¦ Residues APK into /data/app (if the removal has been incorrect).
  • πŸ”„ Update files in /cache/ota or /data/ota_package.

For complete cleaning:

  1. Install SD Maid (root required) or use ADB.
  2. To remove residues from a particular app (e.g. Facebook): adb shell pm clear com.facebook.katana This will clear the cache and data, but will not delete the APK.
  3. For complete removal of APK (root required): adb shell su rm -rf /data/app/com.facebook.katana* rm -rf /data/data/com.facebook.katana exit

πŸ’‘

Use the pm list packages command in ADB to see all packages installed and find unnecessary packages.

7 Safe Alternatives: What to Do If You're Afraid of Removing

If you are not sure about your actions, but want to make room, use safe methods:

  • ☁️ Move files to the cloud: Google Photos (unlimited storage for compressed photos), Mi Cloud (5 GB free).
  • πŸ’Ύ Use the memory card: In camera settings (Camera settings) β†’ Storage) select "Memory card".
  • πŸ”„ Disable Unnecessary System Applications: Through Settings β†’ Annexes β†’ Select the unneeded (e.g. Mi Music) and click "Disable".
  • πŸ›‘οΈ Use Lite versions of apps: Facebook Lite, Messenger Lite, Twitter Lite are occupied in 2-3 lesser.

To automate cleaning:

  • Set up Auto Clean in Settings β†’ Memory β†’ Cleanup β†’ Settings (set a schedule).
  • Turn on β€œClean Up When Locked” in the same menu – the phone will delete the cache when the screen is turned off.

FAQ: Frequent questions about Xiaomi cleanup

Can I delete the Android folder on the memory card?
No, it's a system folder that stores application data (e.g. downloads from instant messengers or game cache) and deletes it will cause errors in the software. Instead, manually clean the contents of the subfolders: Android/data for application data (you can clean selectively). Android/obb for additional game files (you can delete if the game is deleted).
Why do aagain applications take up a lot of space after cleaning the cache?
Apps recover cache the next time they run. To avoid this: Limit background activity in Settings β†’ Battery β†’ Background Limitation: Use Greenify to freeze unnecessary apps. Turn off auto-update in Play Market β†’ Auto-update of applications β†’ Never).
How to return a remote system application?
If you have removed a system application through ADB and want to restore it: Download the original firmware for your model from the Xiaomi Firmware Updater. Retrieve the system.img file from the archive and find the remote APK (for example, using 7-Zip). Install the APK manually or through ADB: adb install path/to/app.apk For full recovery, reset via Fastboot: fastboot flash system.img
Can I delete the MIUI folder in my internal memory?
No, this folder contains system themes, wallpaper and MIUI data. Deleting it will result in: Reset the themes of the design, disappear standard wallpaper, errors in the launcher. Instead, clear the subfolders selectively: MIUI/theme β€” you can delete downloaded themes (but not standard!). MIUI/wallpaper β€” there are wallpapers, but their removal will return the standard ones.
How to Clean Other in Xiaomi Storage?
Section β€œOther” in MIUI includes: Cache of system processes (/data/system). Temporary kernel files (/data/misc). Android Runtime Database (/data/dalvik-cache). To reduce its size: Perform a cache reset in TWRP (Wipe β†’ Advanced Wipe β†’ Dalvik/ART Cache + Cache! remove unnecessary language packs through MoreLocale 2 (Use the command to clean Tombstones: adb shell su -c "rm -rf /data/tombstones/*"