How to completely clean Xiaomi smartphone from garbage: step-by-step guide 2026

Why Xiaomi is slowing down and how to fix it?

Xiaomi’s MIUI-based smartphones are known for their functionality, but over time, even flagship models like the Xiaomi 13 Ultra or Redmi Note 12 Pro+ are starting to slow down, owing to accumulated system debris, background processes and unoptimized settings. According to Counterpoint Research, 68% of Xiaomi users experience a slowdown in the first 12-18 months of use.

The main causes of hanging:

  • πŸ—‘οΈ Application cache – temporary files that take up to 3-5 GB memory
  • πŸ‘» Background processes – autoloading unnecessary services (especially relevant for the use of the system) MIUI 14+)
  • πŸ“± Duplicate files – photos, videos and documents created automatically
  • 🦠 Malware – even through Google Play, garbage optimizers slip

This article presents unique cleaning techniques that you won’t find in standard instructions, including hidden MIUI settings, ADB commands, and safe data resets, all tested on 2022-2026 models (Xiaomi 12T, POCO F5, Redmi K60, etc.).

πŸ“Š How often do you clean your Xiaomi?
Once a month
Only when it starts to brake.
Never cleaned.
Using automatic cleaning.

1. Deep cleaning through built-in MIUI tools

Start with standard tools β€” they will remove up to 70% of the garbage without risking damage to the system. In MIUI 14/15, cleaning algorithms have become more aggressive, but many users are unaware of the hidden options.

Open Settings β†’ About the phone β†’ Memory and perform:

  1. Click β€œClean” in the β€œJunk” section – this will remove the cache of system applications
  2. Go to the Deep Clean tab (hidden under three dots in the upper right corner)
  3. Activate the option β€œDelete unused APK files” – it will find the remnants of deleted applications
  4. Enable "Optimize Background Processes" (available only on hardened devices)

Close all applications

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

Make a backup copy of important data

Turn off the mobile Internet (so as not to interrupt the process of updating applications)-->

⚠️ Warning: Do not use the "Clear All" option in the Memory section - it deletes data from some system applications (Mi Video, Mi Music), which leads to errors on their next run.

Type of garbageAverage volume (64GB)Can I remove it safely?
Cash app.1.2–3.5 GBYes (automatically regenerates)
APK remnants300-800 MBYes.
Logs of the system150-400 MBYes (but may be needed for diagnosis)
Duplicate photos500 MB-2 GBYes (check manually)
Cash Dalvik.200-500 MBOnly through TWRP!

2 Manual removal of unnecessary system applications

Xiaomi is known for pre-installed software that can't be removed by standard means, such as Mi Browser, Mi Pay or GetApps taking up space and running in the background, and can be deactivated or removed via ADB.

Method 1: Disconnect via settings (without root):

  1. Go to Settings β†’ Applications β†’ Application Management
  2. Select an unnecessary app (such as Mi Video)
  3. Click "Disable" β†’ "Disable the application"
  4. Confirm the action (this will remove all updates and cache)

Method 2: Complete removal via ADB (PC required):

adb shell


pm uninstall -k --user 0 com.miui.videoplayer  # Mi Video




pm uninstall -k --user 0 com.miui.player       # Mi Music




pm uninstall -k --user 0 com.xiaomi.payment    # Mi Pay




pm uninstall -k --user 0 com.mi.android.globalFileexplorer #Mi File Manager (if you use another one)

List of safe to remove MIUI packets
com.miui.analytics (analytics collection) com.xiaomi.scanner (document scanner) com.miui.hybrid (hybrid services) com.miui.hybrid.accessory (accessory) com.miui.miservice (Mi services) com.xiaomi.midrop (Mi Drop) com.miui.notes (notes if not used) com.miui.calculator (calculator if there is an alternative)

⚠️ Note: Deleting system applications may cause a Google Play Protect verification error. To avoid this, follow the command before deleting:

adb shell settings put global hidden_api_policy 1

3. Clearing Dalvik and ART cache (for advanced)

Dalvik/ART cache is optimized files to speed up application launches. When you update MIUI or massively install/delete programs, this cache gets contaminated, leading to lags. Cleaning it gives you a 15-20% performance gain.

Method 1: TWRP Recovery (requires an unlocked bootloader):

  1. Download to TWRP (hold Power + Vol Up when enabled)
  2. Go to Advanced. β†’ Wipe Dalvik/ART Cache
  3. Confirm the swipe action
  4. Restart the device (the first start will take 5-10 minutes)

Method 2: Through ADB (without root, but with some application data loss):

adb shell su


rm -r /data/dalvik-cache/*




rm -r /data/app//oat/

πŸ’‘

After cleaning the Dalvik cache, do not update your apps through Google Play for 30 minutes – give the system time to regenerate your optimized files.

⚠️ Note: On some models (POCO F4, Redmi K50) cleaning Dalvik through ADB It can lead to a cyclical reboot, and then only flashing through the Fastboot will help.

4. Optimization of autoboot and background processes

One of the main reasons for MIUI brakes is aggressive application autoloading. Even after closing, many programs continue to run in the background, consuming up to 30% of the CPU. New versions of MIUI 15 have a hidden autorun control section.

How to turn off autoboot:

  1. Open Settings β†’ Applications β†’ Application Management
  2. Select an app (such as Facebook or TikTok)
  3. Go to Auto Start and turn off all switches.
  4. Go back and click "Limit background activity"

For mass shutdown, use ADB:

adb shell cmd appops set com.facebook.app AUTO_START ignore


adb shell cmd appops set com.zhiliaoapp.musically AUTO_START ignore

πŸ’‘

Disabling autoboot for Google Play Services and MiuiDaemon will result in the inoperability of push notifications and account sync.

Hidden MIUI function: activate Performance Mode through the engineering menu:

  1. Please dial in the dialer ##4636##
  2. Go to the tab "Battery Information"
  3. In the menu (three dots), select "Performance Mode"

5. Cleanup of duplicates and unnecessary files

Xiaomi creates duplicate photos when editing, backing up and using features like the Mi Magic Clone. 5 copy-fold: DCIM/Camera, Pictures/Screenshots, MIUI/Editor.

How to find and remove duplicates:

  • πŸ” Use the built-in "Duplicate Search" in the Gallery (available from the MIUI 13)
  • πŸ“ Check the folders: MIUI/Camera/ β€” thumbnails and previews MIUI/ScreenRecorder/ β€” screen-recording Android/data/ β€” cache of games (may weigh) 10+ GB)
  • πŸ€– Install Files by Google – it finds duplicates even in hidden folders

To delete temporary game files (such as Genshin Impact or Call of Duty Mobile):

  1. Open Settings β†’ Storage β†’ Applications
  2. Select the game and click "Clear Cache"
  3. For a complete cleanup, delete the Android/obb/[game name] folder through the file manager.

6.Reset to factory settings without data loss

If previous methods have failed, the final step is soft reset, which saves photos, videos and documents, but removes settings, apps and system debris.

Instructions for MIUI 14/15:

  1. Create a backup through Settings β†’ About Phone β†’ Backup
  2. Go to Settings β†’ About the phone β†’ Reset settings
  3. Select "Reset" (Do not "Erase all data!")
  4. Confirm the action and wait for the reboot (it will take 5-10 minutes)

⚠️ Attention: On models POCO X3 Pro and Redmi Note 10 Pro soft reset can delete Mi Account data. β†’ Accounts. β†’ Mi Account.

After discharge:

  • πŸ”„ Don’t restore data from backup right away – check performance first
  • 🚫 Do not install memory optimizers (such as Clean Master) – they will only make the problem worse.
  • ⚑ Enable "Adaptive Brightness" and "Battery Optimization" in the settings

7. Additional tips to keep the system clean

To ensure that Xiaomi does not slow down in the future, follow these recommendations:

  • πŸ“΅ Turn off Auto App Update in Google Play – manually update once a week
  • πŸ”‹ Use "Battery Mode" (in Settings) β†’ Battery) to limit background
  • πŸ›‘οΈ Install. SD Maid (root only) – it cleans the remnants of remote apps
  • πŸ“‘ Turn off Diagnostics. MIUI" In Settings β†’ The phone. β†’ All parameters. β†’ Debugging

For models with AMOLED-screens (Xiaomi 12 Pro, POCO F4 GT):

  • πŸ–ΌοΈ Use dark wallpaper - this reduces the load on the GPU
  • πŸ”„ Set the refresh rate of 60 Hz (120 Hz increases battery consumption by 25 Hz%)

πŸ’‘

Regularly cleaning the cache and turning off autoboot increases battery life by 15-20% (GSMArena tests on Xiaomi 11T Pro).

Frequently asked questions

Can you clean up Xiaomi without losing photos?
Yes, use soft reset (Section 6) or manual cleaning through Settings β†’ Memory. Photos are stored in the DCIM/ folder that the system does not touch during a standard cleaning. However, always back up to Google Photos or PC.
Why do applications take a long time to load after cleaning the cache?
This is normal β€” apps need time to recover temporary files, like Instagram or TikTok can load longer on the first run after cleaning the cache, and performance will recover after 2-3 launches.
How to clean up Xiaomi if it doesn’t turn on?
If the device is stuck on the logo or does not respond, try: Boot in Recovery Mode (hold Power + Vol Up) Select Wipe Cache Partition If it does not help - perform Factory Reset (delete all data!) For models with unlocked bootloader, you can flash clean firmware through Fastboot.
What apps can be safely removed from Xiaomi?
Safe to remove software (does not affect system stability): Mi Browser (com.android.browser) Mi Music (com.miui.player) Mi Video (com.miui.videoplayer) GetApps (com.xiaomi.mipicks) Mi Pay (com.xiaomi.payment) ⚠️ Do not delete: MiuiDaemon, Security, Finder – this will lead to critical errors.
How to speed up Xiaomi after cleaning?
After cleaning, follow these steps for maximum performance: Turn off animation: in Settings β†’ Special features β†’ Delete animation Activate β€œGame Mode” even for regular applications (increases CPU priority) Install Greenify for background hibernation processes Use L Speed (requires root) to optimize the kernel