How to completely clean memory on Xiaomi 9: from cache to system files

Xiaomi 9 (or Mi 9) is still a popular smartphone due to its powerful hardware and up-to-date firmware. However, even 64 or 128 GB of internal memory over time get clogged with unnecessary files: app cache, duplicate photos, remnants of deleted programs and system debris. If your Mi 9 started to slow down, issue notifications about memory shortages or does not update applications, itโ€™s time to do a general cleaning.

In this article, we will discuss 7 working ways to clean memory, from basic (hand-cache removal) to radical (factory reset), and focus on hidden memory reserves that many users miss, such as.thumbnails files or cache system applications like MIUI Gallery.

All the instructions are relevant for Xiaomi 9 based on MIUI 12/13/14 (including global and Chinese versions of firmware).If you have another model of the Mi 9 series (Mi 9 SE, Mi 9 Lite, Mi 9T), the methods will also work โ€“ the difference is only in the amount of memory and interface nuances.

1. The analysis of occupied memory: what exactly eats the place?

Before you clean it, you need to figure out which files take up the most space. MIUI has a built-in memory analyzer, but it doesn't always show the full picture. Here's how to get accurate data:

  1. Built-in Analyzer: Go to Settings โ†’ About Phone โ†’ Memory. Here you will see a diagram of the memory distribution by category (applications, images, videos, etc.) Click on any category to see details.
  2. Third-party apps: Install Files by Google or SD Maid โ€“ they will show hidden cache files, duplicates and debris that are not visible in the standard manager.

Typical memory eaters on Xiaomi 9:

  • ๐Ÿ“ธ Photos and videos: Even after deleting, the gallery can store thumbnails in the.thumbnails folder (weighs up to 1-2 GB).
  • ๐ŸŽฎ Games: Genshin Impact or Call of Duty Mobile cache easily reaches 5-10 GB.
  • ๐Ÿ—‘๏ธ Remnants of Remote Applications: Settings Files and Cache Often Stay in Folders /Android/data and /Android/obb.
  • ๐Ÿ“ฅ Downloads: APK-Files, documents and archives are stored in the Download folder.

If you see a System or Other category in the memory analyzer with a volume of more than 10 GB, this is a reason for a deep cleaning (for this in Section 5).

๐Ÿ“Š How often do you clean your memory on your smartphone?
Once a week.
Once a month
Only when the place ends.
Never cleaned.

2.Cleaning the app cache: Quick and secure

Cache speeds up applications, but it grows to giant sizes over time. On Xiaomi 9, Facebook, Instagram or TikTok can weigh 500 MB-1 GB each, and you can clean it in two ways:

Method 1: Manual cleaning for individual applications

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select an app (such as YouTube) and click Storage.
  3. Tap Clear Cache. Don't click Clear Data, it will delete all settings and accounts!

Method 2: Mass cleaning the cache of all applications

  1. Go to Settings โ†’ About Phone โ†’ Memory โ†’ Clean.
  2. Select the app cache and confirm the action.

After a mass cache clearing, some apps (like Google Maps or Spotify) will take longer to load when you first run โ€“ thatโ€™s fine.

๐Ÿ’ก

If after cleaning the cache, the application starts to slow down, restart the smartphone. This will reset the background processes and speed up the work.

3. Delete unnecessary files and duplicates

Even if you regularly delete photos and videos, the Xiaomi 9 still has hidden copies and utility files.

  • ๐Ÿ“‚ folder DCIM/.thumbnails: It stores thumbnails of images, and it doesn't hurt the originals, but it frees up the images. 1โ€“2 GB.
  • ๐Ÿ—ƒ๏ธ Download folder: Check for old ones APK, archives.
  • ๐ŸŽต Music or Ringtones folder: often unneeded audio files are located here.
  • ๐Ÿ“ฑ folder Android/obb: contains additional game data (e.g. textures for the PUBG Only delete if you have deleted the game itself.

To find duplicates, use the Files by Google app:

  1. Open the app and go to the Cleanup tab.
  2. Select Duplicate Files or Unused Applications.
  3. Look through the list and remove the unnecessary.

Folder.thumbnails in DCIM|Cash messengers (Telegram, WhatsApp)|Old ones. APK download|Unused screensavers in Ringtones|Remains of remote games in /Android/obb-->

4. Cleaning of garbage with MIUI system tools

MIUI has built-in deep cleaning tools that many users ignore, which remove system debris that you can't see in a standard file manager:

Tool 1: Optimization

  1. Open Security. โ†’ Optimization.
  2. Press Deep Clean and wait for analysis.
  3. Delete the found File Residues, Cache Ads and Unnecessary APKs.

Tool 2: "Storage" in the settings

  1. Go to Settings โ†’ About the phone โ†’ Memory.
  2. Click Clean and select Garbage Files.
  3. Confirm removal.

These tools are removed:

  • ๐Ÿ—‘๏ธ Remnants of Remote Applications (Folders in the /data/data).
  • ๐Ÿ“ฆ Temporary update files (/cache).
  • ๐Ÿ“‹ Logs of the system (/data/log).

โš ๏ธ Note: If after cleaning system tools, the smartphone began to restart or lag, check for important updates in Settings โ†’ System update: It is possible that files necessary for firmware to work smoothly have been deleted.

5 Hidden memory reserves: What else can be cleaned?

Even after the cache and debris are removed, the Xiaomi 9 still has hidden files that are not visible in the standard manager, which can be found using a Root Explorer (such as Root Explorer) or ADB-Here's what we need to check:

Type of fileFolder/pathHow to clean upRisks.
Image miniatures/DCIM/.thumbnailsDelete all contents of the folderNo (miniatures will recover)
Cash MIUI Gallery/Android/data/com.miui.gallery/cacheDelete the cache folderThe gallery will be loaded longer
Logs of the system/data/logDelete all files with the.log extensionData for debugging may be missing
Remains of updates/cache and /data/ota_packageDelete files with the name update.zipNo (unless you plan to roll back)

To access these folders:

  1. Connect your smartphone to your PC and use ADB: adb shell su rm -rf /data/log/* rm -rf /cache/*
  2. Or install a Root Explorer and manually delete files (root rights required).

โš ๏ธ Note: Delete files in /system or /vendor rootless can cause a device to blink. Don't touch these folders unless you're sure you're doing something!

6. Radical methods: reset to factory settings

If all previous methods did not work, and the Xiaomi 9 still lacks memory, it will be a complete reset (Hard Reset), which will delete all data, including apps, photos and settings, but return the smartphone to a โ€œcleanโ€ state.

How to reset:

  1. Back up important data (photos, contacts, SMS) through Settings โ†’ Additional โ†’ Backup or Mi Cloud.
  2. Go to Settings โ†’ About the phone โ†’ Reset settings.
  3. Choose to erase all data and confirm the action.
  4. After the reboot, set up your smartphone as new.

What the dumping does:

  • โœ… Remove all system settings and cache.
  • โœ… Frees up space occupied by update remnants and debris MIUI.
  • โœ… Corrects errors related to memory fragmentation.

What the dumping doesn't do:

  • โŒ Does not increase physical storage (if you have 64 GB, you will have 64 GB left).
  • โŒ Does not delete files on SD-map (if it is installed).

๐Ÿ’ก

Resetting to factory settings is a last resort, so try migrating files to your PC or cloud before you do, and clearing your memory with system tools.

7.How to prevent rapid memory filling in the future?

To keep the memory on Xiaomi 9 from getting clogged up again, follow these tips:

  • ๐Ÿ“ฑ Turn off auto-update apps in Google Play: go to Settings โ†’ Network settings โ†’ Auto Update Apps and Choose Never.
  • ๐Ÿ“ธ Set up automatic cache cleanup in MIUI: Security โ†’ Optimization โ†’ Autoclean (include and set a schedule).
  • โ˜๏ธ Use cloud storage: transfer your photo to Google Photos or Mi Cloud and enable the option to Free up space.
  • ๐ŸŽฎ Limit the cache of games: In the game settings (such as Genshin Impact) set a cache limit or turn off the download HD-texture.

It is also useful to check the Download folder regularly and delete unnecessary files, and you can use Files by Google with notifications about unused files.

What if memory is terminated due to updates?
MIUI frequently downloads updates in the background, taking up 2โ€“3 GB, to avoid that: 1. Turn off autoload updates in Settings โ†’ Updating the system โ†’ Settings (โš™๏ธ) โ†’ Auto-downloading updates. 2. Remove downloaded but uninstalled updates in the folder /data/ota_package (root rights are required or ADB). 3. Use it. MIUI bootloader to select a specific firmware version and manual installation.

FAQ: Frequent questions about cleaning up Xiaomi 9 memory

Can I clean my memory without losing data?
Yes, if you use built-in MIUI tools (cache cleanup, garbage removal) or third-party applications like SD Maid. However, deep cleaning (such as deleting system files) may require root rights, which carries the risk of data loss. Always back up before serious manipulation.
Why does the memory fill up quickly after cleaning?
This is because of: Auto-updates of apps (especially games and social networks); caching of media files in messengers (Telegram, WhatsApp); background downloads of MIUI updates. System logs that are created daily. Solution: disable auto-updates, limit the messenger cache in their settings and regularly clean the /data/log folder.
How to transfer applications to SD-map to free up internal memory?
On Xiaomi 9, transfer applications to the SD-The map is limited due to features MIUI filesystem F2FS. However, it may: Use SD-card as internal storage (formatted as part of the phone's memory). To do this, insert the card and select Use as internal memory when you first connect. Move media files (photos, videos, music) to SD-map manually or through settings โ†’ Warehouse โ†’ Data portability. Please note: after formatting SD-The card as internal memory cannot be used on other devices without complete cleaning.
Is it safe to use a memory cleaner (Clean Master, CCleaner) application?
Apps like Clean Master or CCleaner are not recommended for Xiaomi 9 for several reasons: They often delete useful files, which leads to app crashes. They can slow down a smartphone while running in the background. MIUI already has built-in cleaning tools that work more efficiently and safely. Except: Files by Google and SD Maid are not aggressive and really help find garbage.
How do I know how much memory MIUI system applications take?
System applications (e.g, MIUI Gallery, Security, Themes) take up 3 to 8GB of storage. To see the exact data: Go to Settings โ†’ Annexes โ†’ Application management. Press three dots (โ‹ฎ) In the upper right corner, select Show System Processes. Sort applications by size by clicking on Warehouse. Remove or disable system applications is not recommended, which can lead to unstable operation. MIUI.