Xiaomi’s Complete Waste Cleanup: 7 Proven Ways

Your Xiaomi smartphone is slowing down, running out, or reporting memory shortages? Most often it's due to the accumulated digital debris: remnants of remote applications, cache of system processes, duplicate photos and unnecessary logs. Even new models on MIUI 14 are not immune to this problem, as the manufacturer installs dozens of preloaded services on devices that actively consume resources.

In this article, you will find 7 deep cleaning methods, including hidden MIUI features, commands for power users and recommendations for optimizing the system after cleaning. We will analyze which files can be deleted without risk and which should not be touched, even if they take up a lot of space.

Why Xiaomi is quickly clogged with garbage

Xiaomi MIUI-based smartphones have two key features that accelerate the accumulation of unnecessary data:

  • πŸ“¦ Double cache: The system creates copies of temporary files for both user and system applications. For example, com.miui.gallery can store thumbnails of photos you deleted long ago.
  • πŸ”„ Aggressive background activity: Even after the application is closed MIUI It leaves its processes in memory for "quick start." 1-2 seconds at opening, but eats up to 500 MB of memory for a week.
  • πŸ“± Embedded Services: Mi Cloud, Mi Video, Mi Browser, and other pre-installed apps create logs and cache, even if you don’t use them.

According to tests of the laboratory XDA Developers, after 3 months of use on the Redmi Note 12 Pro with MIUI 14 accumulates an average of 3-4 GB of garbage, of which:

Type of garbageAverage volumeCan I remove it?
Cash app.1.2–1.8 GBYeah, totally.
Remnants of remote programs300-500 MBYes, partly.
System logs (.log,.tmp)200-400 MBYeah, but be careful.
Duplicate photo/video500 MB-1.5 GBYes, manually.
Cash Google Play Services150-300 MBNo (risk of failure)

A critical mistake many users make is using Google Play’s β€œmemory optimizers.” Most of these apps (like Clean Master or CCleaner) not only don’t clean up system debris, but also leave behind additional background processes that consume up to 10% of battery life per day.

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

Preparation for cleaning: what to do before you start

Before you start deleting files, follow 3 mandatory steps to avoid losing important data or system failures:

  1. Backup via Settings β†’ About Phone β†’ Backup. This is especially true for MIUI 13/14 users, where factory resets can delete data from internal memory.
  2. Check the space in Settings β†’ Memory. If less than 10% of the total volume is free, the system begins to work unstable.
  3. Turn off automatic optimization in Settings β†’ Battery & Performance β†’ Optimization. Otherwise, MIUI may interrupt the cleaning process.

We also recommend connecting your smartphone to charge or making sure your battery level is above 50%.Some operations (such as scanning the file system) can take up to 20 minutes and actively consume energy.

β˜‘οΈ Preparation for Xiaomi cleanup

Done: 0 / 5

⚠️ WARNING: If you use Xiaomi.eu or custom firmware, don’t clean the folder /system This can lead to a "brick" of the device (completely inoperable), which will only fix the flashing through the Fastboot.

Method 1: Built-in cleaning utility MIUI

The safest method is to use the built-in Cleanup tool, which is available on all Xiaomi smartphones starting with MIUI 10.

  • πŸ—‘οΈ Application cache and systems
  • πŸ“ Temporary files (.tmp,.log)
  • πŸ” Remains of the remote APK-file
  • πŸ“· Miniatures and gallery cache

How to start:

  1. Open the Security app (shield icon).
  2. Go to the "Cleanup" tab.
  3. Click Scan and wait until it is completed (may take 2-5 minutes).
  4. Select all categories of garbage and tap "Clean".

For deeper cleaning:

  1. In the same menu, click "Deep Cleaning".
  2. Select "Unnecessary APKs" and "Large Files".
  3. Delete files larger than the size 50 MB that you do not recognize (for example, com.xiaomi.midrop_20230515.apk).

πŸ’‘

If files with the.odex or.vdex extension remain in the list after cleaning, do not delete them - these are components of system applications without which MIUI can work incorrectly.

Method 2: Manually cleansing the application cache

The built-in utility doesn't always delete the cache completely, for example, Google Play Services and Mi Account can store up to 1 GB of temporary data that doesn't fall under auto-cleaning.

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Sort the list by size (click on the three dots in the upper right corner).
  3. Select apps with a cache of more than 100MB (e.g. Facebook, Instagram, Mi Video).
  4. Press "Storage" β†’ "Clear the cache".

Pay special attention to these system applications (their cache can be cleaned without risk):

  • πŸ“Ί com.miui.videoplayer (video player)
  • 🎡 com.miui.player (music player)
  • πŸ“· com.android.gallery3d (gallery)
  • 🌐 com.android.browser (browser)

⚠️ Note: Do not clear the cache for com.google.android.gms (Google Play Services) and com.xiaomi.account (Mi Account).This may result in sync errors and loss of access to your Xiaomi account.

To speed up the process, use the command via ADB (computer required):

adb shell pm list packages -f | awk -F= '{print $2}' | xargs -I '{}' adb shell pm clear '{}

This command will clear the cache of all user applications at once.The system applications will remain intact.

Method 3: Removing duplicate photos and videos

One of the most voracious places on Xiaomi is the DCIM folder, where they accumulate:

  • πŸ“Έ Duplicate photos (created when editing in the Xiaomi Gallery)
  • πŸŽ₯ Video copies (for example, after cropping in Mi Video)
  • πŸ–ΌοΈ Sketch and miniatures (folder.thumbnails)
  • πŸ“ Screenshots with the same content (e.g, Screenshot_2023...(1).png)

To find and remove duplicates:

  1. Install Files by Google from the Play Market.
  2. Open the tab "Clean up" β†’ "Duplicates of files".
  3. Select groups of duplicates and click "Delete".
  4. For a deep check, use the β€œBig Files” option – it will find videos larger than 100 MB that you may have forgotten.

An alternative method for power users is to use ADB to search for duplicates by hash:

adb shell "find /sdcard/DCIM -type f -exec md5sum {} + | sort | uniq -w32 -dD"

This command will display a list of duplicate files in the DCIM folder, and you can delete them through the adb shell rm "path to file".

How to recover accidentally deleted photos?
If you delete important files, check the folder. /storage/emulated/0/Pictures/.recently_deleted β€” MIUI It keeps deleted photos up to 30 You can also use programs like DiskDigger (root rights required).

Method 4: Clean Download folder and instant messenger downloads

Download folder and messenger directories (WhatsApp, Telegram) often contain gigabytes of unnecessary files:

  • πŸ“„ PDF-The documents you downloaded for later"
  • 🎡 Audio files from messages (voice, music)
  • πŸ“¦ APK-files (application installation packages)
  • πŸ–ΌοΈ Memes and pictures from chat rooms

How to clean:

  1. Open Files (standard MIUI application).
  2. Go to the Inner Memory β†’ Download.
  3. Sort the files by date or size.
  4. Remove anything over 6 months old and weighs more than 10MB.

For messengers:

  • πŸ“± WhatsApp: Internal Memory β†’ WhatsApp β†’ Media β†’ Delete WhatsApp Animated Gifs, WhatsApp Audio, WhatsApp Video folders (if files are not needed).
  • πŸ“˜ Telegram: Internal Memory β†’ Telegram β†’ Telegram Documents and Telegram Images.

⚠️ Attention: Do not delete the folder WhatsApp/Databases β€” It's a backup of your chats, and if you want to make room, move it to your computer or the cloud.

πŸ’‘

Regular cleaning of the Download folder can free up up to 2-3 GB of space. Set up automatic deletion of old files in Google Files (section "Clean up β†’ Settings β†’ Auto Clean up").

Method 5: Remove Unnecessary System Applications (without root)

MIUI is known for a large number of pre-installed applications, many of which cannot be removed by standard means, but can be disabled or removed through ADB without obtaining root rights.

List of safe applications (do not affect the system):

Package nameAnnexCan I remove it?
com.miui.analyticsMIUI AnalyticsYes.
com.xiaomi.midropMi Drop (file transfer)Yes.
com.miui.bugreportError reportsYes.
com.miui.hybridHybrid Platform (Advertising Module)Yes.
com.android.browserMi BrowserYes (if you use Chrome)

Instructions for removal through ADB:

  1. Connect your smartphone to your PC and enable USB Debugging (Settings β†’ About Phone β†’ MIUI Version β†’ 7 times tap, then Additional β†’ For developers β†’ USB debugging).
  2. Open the command line on your PC and type in: Adb devices (should display your device).
  3. Run the command to delete (e.g. for Mi Drop): adb shell pm uninstall --user 0 com.xiaomi.midrop

To return the application, use the command:

adb shell cmd package install-existing com.xiaomi.midrop

πŸ’‘

Before you uninstall system applications, create a restore point in TWRP (if installed) to help restore the system in case of errors.

Method 6: Reset to factory settings (last chance)

If previous methods didn't work, and the smartphone still brakes, it's a hard reset, and it will delete all the data, including:

  • πŸ“± Applications and their settings
  • πŸ“ Photos, videos, music (if not saved) SD-map)
  • πŸ”‘ Wi-Fi passwords and accounts
  • πŸ“‹ Messages and Contacts (unless synced with Google)

How to reset:

  1. Go to Settings β†’ About the phone β†’ Reset settings.
  2. Select "Erase all data."
  3. Enter the password (if installed) and confirm the action.
  4. Wait until it is completed (it will take 5-15 minutes).

After discharge:

  • πŸ”§ Do not restore backup through Mi Cloud – it may contain the same garbage.
  • πŸ“₯ Install only the necessary applications.
  • πŸ”„ Turn off automatic download of media files in messengers.

⚠️ Note: On some models (Redmi Note 10 Pro, POCO X3 Pro) after reset, the Internal Storage partition in the conductor may disappear. To return access, restart the device in Recovery Mode (press Power). + Volume Up and select "Wipe Data" again.

Method 7: Optimization after cleaning

After removing the garbage, you need to configure the system to avoid the re-accumulation of unnecessary files:

  • πŸ”„ Turn off auto-update apps in the Play Market (Settings) β†’ Auto-update β†’ Never).
  • πŸ“΄ Limit background activity for social media: Settings β†’ Battery β†’ Choice of applications β†’ Set β€œLimited” for Facebook, Instagram.
  • πŸ—ƒοΈ Transfer the heavy files to SD-map (if supported): Settings β†’ Memory. β†’ Data portability.
  • πŸ” Set up a weekly automatic cleaning in Google Files.

For advanced users:

  • πŸ› οΈ Install Magisk and Universal Module GMS Doze to limit background activity of Google Play Services.
  • πŸ“Š Use Greenify to hibernate unnecessary apps (root required).

Check the efficiency of cleaning:

  1. Run AnTuTu Benchmark and compare the results before/after.
  2. See the battery consumption schedule in Settings β†’ Battery β†’ Use.
  3. Use the command to check the free memory: adb shell df -h (note the /data string - there should be at least 20% free space).

πŸ’‘

Regularly cleaning the cache and disabling unnecessary services can increase battery life by 15-20% and speed up application launches by 30% (GSMArena test data).

FAQ: Frequent questions about Xiaomi cleanup

Can I clean the Android/data folder?
The /Android/data folder contains the settings and cache of user applications. You can't delete it completely, it will cause malfunctions, but you can clear the subfolders of specific applications (e.g. /Android/data/com.facebook.katana/cache) if you're willing to lose your authorization data.
Why does the memory fill up again after cleaning the garbage?
It's because of this: πŸ”„ Automatic download of application updates. πŸ“₯ Caching media files in messengers (WhatsApp, Telegram). πŸ“Š System process logs (especially if debugging is enabled) USB). Solution: disable auto updates, configure messengers to save media only over Wi-Fi and regularly clear cache through Google Files.
How to clean up Xiaomi garbage without a computer?
All methods in this article, except ADB commands, run directly on your smartphone. For deep cleaning without a PC: Use Google Files to remove duplicates. Clean the cache manually through Settings β†’ Apps. Remove unnecessary files from Download and messenger folders. App Inspector (Developer Mode Required) can be used to remove system applications without ADB.
What if Xiaomi started to lay after cleaning?
Possible causes and solutions: πŸ”„ Lack of memory: Free up another 1-2 GB (optimally 10% of the total). πŸ”§ System Failure: Restart the device in Safe Mode (press Power) β†’ "Restarting in Safe Mode"). πŸ“₯ Damaged files: Run the check through MIUI Security Scan (Security) β†’ If the lags are left, reset to factory settings.
How to clean up your garbage on Xiaomi with root rights?
With root access, you can: πŸ—‘οΈ Remove system applications completely (not only disable). πŸ“‚ Clear the folders. /cache and /dalvik-cache manually. πŸ” Use it. SD Maid for deep database cleanup. Dangerous actions (may lead to a brick): ❌ Deletion of files from /system/bin or /system/lib. ❌ Changes in access rights /data/data/com.android.providers.settings. Titanium Backup is used to freeze unnecessary system processes.