Cleaning Xiaomi system: from cache to complete reset

Xiaomi devices β€” whether Redmi smartphones, POCO or Mi TVs β€” accumulate unnecessary files, app cache and residual data over time, which slow down the system. Even powerful models like Xiaomi 14 Ultra or Mi TV Q2 are not immune to β€œdigital garbage” that takes up precious space and reduces performance. But how to clean the system without removing important data? This article will help you understand the nuances from manual cache cleaning to full reset to factory settings.

We’ll look at official methods (MIUI and PatchWall built-in TV tools), third-party utilities, and hidden features that aren’t covered in standard instructions. We’ll focus on the risks of data loss when resetting via Fastboot β€” a method that is often recommended on forums, but only suitable for advanced users. If your device is slowing down, overheating, or issuing β€œNot enough memory” errors, the next steps will help it return to its previous speed.

1. Diagnosis: What exactly is taking up memory?

Before you start cleaning, you need to understand which files or processes are overloading the system. MIUI and PatchWall (Mi TV OS) have built-in memory analysis tools, but they don’t always show the full picture.

On smartphones, open Settings β†’ About Phone β†’ Memory. Here you will see the allocation of memory into categories: System Files, Applications, Media and Cash. Pay attention to the Other section – often there are temporary files from remote applications or erroneous downloads. On Xiaomi TVs, similar information is available in Settings β†’ Storage.

  • πŸ“± Smartphones: If the system files partition takes up more 15-20 GB, this may indicate log accumulation or residual files after updates.
  • πŸ“Ί TVs: App cache (especially Netflix, YouTube, Prime Video) often inflates to 1-2 GB.
  • ⚠️ Suspicious files: Folders like.thumbnails, DCIM/.thumbs or Android/data/com.xiaomi.* can weigh gigabytes.

For deep analysis on smartphones, use the Files by Google app (available in the Play Market), which shows not only large files, but also duplicates, and offers to clear the cache in one tap. There are no such tools on TVs, so you will have to rely on built-in tools or connect them to the Internet. USB-file-storage.

πŸ“Š Which Xiaomi device do you clean more often?
Smartphone (Redmi/POCO/Mi)
Television (Mi TV)
Tablet (Mi Pad)
Laptop (Mi Notebook)
Other

2. Clearing cache and temporary files

Cache speeds up applications, but eventually turns into ballast, and MIUI has two ways of cleaning it: for individual applications and globally for the entire system.

To clean the cache of a particular application:

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Select the app you want (like Facebook or TikTok).
  3. Press Warehouse. β†’ Clear the cache.

For global cleaning:

  1. Open Settings β†’ Storage β†’ Clean (or Optimize in newer versions of MIUI).
  2. Select Cash and confirm the action.

On Xiaomi TVs, the path is different: Settings β†’ Apps β†’ App Management β†’ [Select App] β†’ Clear the data. It’s important not to confuse Clear Cache (safe) and Clear Data (removes settings and accounts in the app!).

Download folder (if files are not needed)|Cash app (Android/data/*/cache)|.thumbnails folder (image miniatures)|Logs of the system (/sdcard/MIUI/debug_log)|Temporary update files (/cache through TWRP)-->

⚠️ Attention: Do not delete folders Android/obb β€” It stores game data (such as Genshin Impact or Call of Duty Mobile) and its loss will lead to the re-download of gigabytes of data.

3. Removal of unnecessary applications and MIUI "junk"

MIUI is known for its abundance of pre-installed applications, many of which cannot be removed by standard means.

To remove system applications without root rights:

  1. Activate Developer Mode (7 times click on the MIUI version in Settings β†’ About Phone).
  2. Enable USB debugging in Settings β†’ Additional β†’ For developers.
  3. Connect your phone to your PC and use the command: adb shell pm uninstall -k --user 0 com.xiaomi.package.name Replace com.xiaomi.package.name with the package name (e.g. com.miui.analytics for statistics collection).

List of safe packets to remove (checked on MIUI 14):

  • πŸ—‘οΈ com.miui.analytics – Analytics collection (does not affect the work)
  • πŸ—‘οΈ com.xiaomi.ab – advertising services
  • πŸ—‘οΈ com.miui.hybrid – Hybrid applications (e.g. Mi Video)
  • 🚫 com.android.cts.ctsshim – Do not delete (required for Google certification)

On Xiaomi TVs, pre-installed apps are removed even more easily: press the Menu button on the remote β†’ Delete. However, some services (such as Mi Home) are associated with system functions and can return to themselves after an update.

πŸ’‘

Before you delete system applications, back up through Settings β†’ Additional β†’ Backup. This will allow you to recover deleted packets if something goes wrong.

4.Deep cleaning: reset to factory settings

If the device is slowing down or you're preparing it for sale, Hard Reset will help.This method deletes all data, including accounts, photos and settings. There are two ways to reset on Xiaomi smartphones:

Method 1. Through the settings menu (recommended):

  1. Settings β†’ About the phone β†’ Resetting settings.
  2. Choose to erase all data.
  3. Enter your password (if installed) and confirm.

Method 2. Through Recovery (if the phone is not turned on):

  1. Turn off the device.
  2. Press Power + Volume up until the Mi logo appears.
  3. From the Recovery menu, select Wipe Data β†’ Wipe All Data.

On Xiaomi TVs, the reset is done as follows:

  1. Settings β†’ Device β†’ Reset and update β†’ Reset to factory settings.
  2. Enter. PIN-code (default 0000 or 1234).
Type of dischargeWhat's removedImplementation timeDo you need a password?
Through settingsAll data except files on SD-map5-10 minutesYes (if installed)
Through Recovery.Everything, including internal memory10-15 minutes.No.
Fastboot (Fastboot erase userdata)Complete cleaning of /data partition3-5 minutesNo, but I need a PC.

⚠️ Note: After a Fastboot reset, the device may require re-authorization to the Mi Account. If you forget your password, unlocking will take up to 72 hours (Xiaomi’s anti-theft policy).

5. Hidden cleaning functions: modes and commands

MIUI and PatchWall have hidden tools for power users, such as using smartphones to activate Safe Mode, which disables all third-party applications, to help identify which software is slowing down the system.

To enter Safe Mode:

  1. Press the power button before the turn off menu appears.
  2. Press and hold the power off until a request to switch to Safe Mode appears.

Xiaomi TVs have a hidden menu of engineering settings where you can reset your Wi-Fi or Bluetooth settings without completely resetting.

  1. Open the Settings. β†’ About the device.
  2. Quickly press 5 times on the PatchWall version.
  3. Enter the code 12345 (by default).

For advanced users useful ADB-team:

  • πŸ”§ Clearing the cache of all user applications: adb shell pm trim-caches 1000G
  • πŸ”§ Delete temporary update files: adb shell rm -rf /cache/*
  • πŸ”§ Reboot to Fastboot for further manipulation: adb reboot bootloader
What if the device does not turn on after cleaning?
If after resetting via Fastboot or Recovery, the device is getting stuck on the Mi logo, try: 1. Re-enter Recovery and select Wipe Cache Partition. 2. Refuse the device through the Mi Flash Tool (requires a PC and original firmware). 3. If nothing helps - contact the service center with a check for purchase (warranty is maintained even after the reset).

6. Cleaning automation: scheduler and third-party utilities

Manual cleaning is tedious, so MIUI offers automatic optimization tools. Under Settings β†’ Battery and Performance β†’ Optimization can be included:

  • πŸ€– Autocleaning the cache (weekly).
  • πŸ€– Limiting background processes to save charge.
  • πŸ€– Smart memory cleanup (deletes unused files older than 30 days).

For deep automation, third-party utilities are suitable:

  • πŸ› οΈ SD Maid (requires root) – cleans residual files, duplicates and empty folders.
  • πŸ› οΈ CCleaner (free version) – optimizes cache and application history.
  • πŸ› οΈ Files by Google – a simple interface for removing large and unnecessary files.

On Xiaomi TVs, automatic cleaning is limited, only regular manual cache resetting of applications (once in a week) will help. 1-2 month or use USB-storage.

πŸ’‘

Regularly cleaning the cache (once a month) and removing unused applications prolongs battery life and prevents the processor from overheating.

7. Features of cleaning for different Xiaomi models

The cleaning procedure may vary depending on the model and version of MIUI/PatchWall.

The deviceFeatures of cleaningRecommendations
Redmi Note 12 Pro+Large cache volume due to the 120Hz display and MediaTek Dimensity 1080.Clean up the game cache (Genshin Impact, Honor of Kings) after each update.
Xiaomi 13 UltraSystem files take up to 25 GB due to Leica cameras and AI-algorithm.Use the settings. β†’ Memory. β†’ Free up space for removal RAW-photo.
Mi TV Q2 75"Netflix and YouTube cache can reach 3-4 GB.Clean through Settings β†’ Applications β†’ [Select] β†’ Clear the data.
POCO F5Aggressive MIUI optimization for POCO can remove background processes.Turn off background activity restriction in the battery settings.

For models with slots under SD-map (e.g. Redmi) 10C) Move your media files to an external drive, free up internal memory and speed up the system. TV (Like Mi. TV A2) plugged in USB-disk and configure the storage of the cache of applications on it.

Frequently asked questions

Can you clean up Xiaomi without losing data?
Yes, if you limit yourself to clearing the cache and deleting unnecessary files manually. Full reset deletes everything, including photos and contacts. Always back up through Settings β†’ Additional β†’ Backup or Google Drive.
Why do applications work slower after cleaning the cache?
This is normal: the cache speeds up the data load, and after cleaning it, the applications have to download the information again, the speed will return to normal after 1-2 days of active use.
How to clean up memory on Xiaomi if the phone is not turned on?
Use Recovery Mode (press Power + Volume Up) and select Wipe Data. If that doesn't help, run the device through the Mi Flash Tool on your PC.
What files can be safely deleted in the Android folder?
Safe to delete: The cache folder inside Android/data/[name packet]. The tmp folder. Don't touch the obb (game data) and media (application downloads) folders.
Why does Xiaomi ask for an old password after a reset?
This is Mi Account protection. If you reset your device via Fastboot or Recovery, the system may require you to enter a password from the last associated account. If you don't remember it, restore access through the official site or contact support with proof of purchase.