How to Clean Memory on Xiaomi Mi 9: A Complete Guide with Instructions and Tips

Your Xiaomi Mi 9 is slowing down, apps are suddenly shutting down, and the system is giving notifications about memory shortages? The problem is familiar to many owners of this flagship of 2019. Even with 64 or 128 GB of internal memory, garbage accumulates over time: app cache, duplicate photos, residual files after updates and unnecessary data from MIUI. In this article, we will analyze 7 proven ways to clean up memory โ€” from simple to radical, and also tell you how to avoid repeated clogging.

The Mi 9 feature is that there is no memory card slot, so every megabyte counts. Fortunately, the system offers built-in optimization tools, but they don't always cope with deep cleaning. We tested all methods on current versions of MIUI 14 and Android 12 so you can choose the most efficient option without risking damaging data.

Before you start, check how much memory is occupied: go to Settings โ†’ About Phone โ†’ Memory. If less than 10% is free, itโ€™s time to act! And if the phone gives an error โ€œInsufficient memoryโ€ when installing applications, skip the first steps and immediately proceed to deep cleaning.

Basic methods: cache, garbage and temporary files

Start with the safest ways that donโ€™t affect personal data. In Mi 9, app cache and system debris can take up to 5-8 GB โ€“ especially if you are actively using social networks, instant messengers and streaming services.

To clear the cache of all applications at once:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Click on the three dots in the top right corner and select Clear Cache.
  3. Confirm the action โ€“ the system will delete temporary files in a few seconds.

To clean the garbage manually:

  • ๐Ÿ“ Download folder: here you can collect downloaded files from your browser, messengers and email. PDF, APK archives.
  • ๐Ÿ—‘๏ธ Recycle bin: in the Mi 9 gallery, deleted photos and videos are stored for 30 days. โ†’ Basket โ†’ Clean up.
  • ๐Ÿ”„ Residual files: after uninstallation of applications, folders remain in the /Android/data/. Remove them through the file manager (e.g., Mi File Manager).

โš ๏ธ Note: Do not delete folders called com.xiaomi.* or android - this may disrupt the system.

๐Ÿ“Š How often do you clean your memory on your smartphone?
Once a week.
Once a month
Only when it's slowing down.
Never cleaned.

2. built-in MIUI tools for optimization

MIUI offers a few utilities for automatic cleaning, but they often don't work well. Let's figure out how to make them work to the fullest.

The first tool is memory optimization:

  1. Go to Settings โ†’ Special features โ†’ Memory optimization.
  2. Enable the Auto Clean option and set a schedule (we recommend daily at 3:00).
  3. Click Clean Now to remove background processes and free RAM.

The second is Security (Security app):

  • ๐Ÿงน Acceleration: Remove unnecessary processes and cache (available on the home screen of the app).
  • ๐Ÿ—ƒ๏ธ Deep Cleanup: Analyzes large files, duplicates and rarely used applications. Run the scan and manually select which to delete.
  • ๐Ÿ” Virus check: some malware creates hidden files that take up space. Do a check even if the antivirus is disabled.
MIUI instrumentWhat cleansesEfficiency
Optimizing memoryBackground processes, RAM cacheLow (temporary effect)
Safety โ†’ AccelerationApp cache, junk filesMedium (1-3 GB)
Security โ†’ Deep cleaningDuplicates, large files, rare applicationsHigh (3-10GB)
Storage โ†’ Memory AnalysisVisualization of occupied spaceInformational (not cleansing)

If there is still little free space after using these tools, proceed to the following methods.

๐Ÿ’ก

Include Memory Compression in Settings โ†’ Additional โ†’ Lab (not available on all versions of MIUI) to reduce the amount of system processes you use by 10 to 15 percent.

3. Application Management: What Can Be Removed Without Risk

Many Mi 9 users install dozens of apps, but only a few, and even unused programs take up space: their data, cache, and updates. Here's how to safely dispose of them:

List of applications that can be removed without consequences:

  • ๐ŸŽฎ Games you do not play (for example, games you do not play, PUBG Mobile, Call of Duty โ€“ they weigh 1-2 GB).
  • ๐Ÿ“ฑ Duplicate applications (for example, two browsers or two messengers).
  • ๐Ÿ›’ Apps of stores you do not use (AliExpress, Wildberries, etc.).
  • ๐Ÿ“บ Streaming services if you only watch videos on YouTube (KION, Okko, IVI).
  • ๐Ÿ“Š Fitness or health apps if you donโ€™t use a fitness bracelet.

To remove system applications (e.g. Mi Music, Mi Video, Browser), root or other rights will be required. ADB-Without them, you can only turn off their updates and clean up the data:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Select an unnecessary system application (such as Mi Pay).
  3. Click Disable (if available) or Clear Data.
  4. In the Warehouse section, turn off Auto Update.

โš ๏ธ Note: Do not remove or disable system applications called com.android., com.xiaomi.finddevice or com.miui. โ€“ this can cause malfunctions in the phone.

Check the size of the application in Settings โ†’ Applications

Make sure there are no important data (e.g. saves in games)

Turn off auto-update in Google Play

Backup (if the application contains important information)

Remove the cache before uninstallation-->

4. Deep Cleanup: Hidden Files and Technical Folders

If the basic methods didnโ€™t work, itโ€™s time to dig deeper. The Xiaomi Mi 9 has hidden folders and files that arenโ€™t visible in a standard file manager, but take up gigabytes of memory. To remove them, youโ€™ll need Root Explorer or FX File Manager with hidden file mode enabled.

Where to look for garbage:

  • ๐Ÿ“‚ /data/log/ โ€” System log files (you can delete everything except the current logs).
  • ๐Ÿ“‚ /data/tombstones/ โ€” Error dumps (delete all files with the.tombstone extension).
  • ๐Ÿ“‚ /data/system/package_cache/ โ€” cache of installed packages (remove the contents).
  • ๐Ÿ“‚ /sdcard/Android/obb/ โ€” Game files (e.g. Genshin Impact or Honkai: Star Rail) can take up to 10 GB).
  • ๐Ÿ“‚ /sdcard/MIUI/ โ€” Temporary theme and wallpaper files (remove theme and wallpaper folders if you donโ€™t use custom themes).

To clean up the cache of Google Play Services (often takes 1-2 GB):

  1. Go to Settings โ†’ Applications โ†’ All applications.
  2. Find Google Play Services and click Storage.
  3. Select Clear Cache and Control Space โ†’ Clear all data.

If you are using Google Photos for backup, check the /sdcard/DCIM/.thumbnails folder โ€“ it stores thumbnails of photos that can be safely deleted.

What to do if you do not have enough permissions to delete files?
If the file manager doesnโ€™t let you delete the folder, try: 1. Connect your phone to your PC and use ADB: adb shell su rm -rf /path/to/folder 2. Install Magisk and get root access (risky for beginners). 3. Use the SD Maid app (requires root).

5. Transfer data to the cloud and external media

If you donโ€™t want to delete anything, transfer your files to the cloud or external drive. Xiaomi Mi 9 does not support memory cards, but you can use:

  • โ˜๏ธ Cloud storage: Google Drive (15GB free). Mi Cloud (5GB free, integrated into the MIUI). Yandex Disk (10GB free).
  • ๐Ÿ’พ External drives: USB-flash-drive OTG-Adapter (formats supported) FAT32, exFAT) Portable SSD-storage device (for large amounts of data).
  • ๐Ÿ“ฑ Other devices: Transfer files to PC over Wi-Fi via Mi Drop or LocalSend. Using the second phone as a drive (via Wi-Fi) FTP-server).

To automate backup:

  1. Open the Gallery and go to Settings โ†’ Backup.
  2. Enable Autoboot in Mi Cloud for photos and videos.
  3. In Google Photos, activate Backup and Sync.

โš ๏ธ Note: When transferring files to an external drive through OTG Do not remove the flash drive without safely shutting down (Notifications) โ†’ Shut down. USB-This can cause data damage.

๐Ÿ’ก

Moving files to the cloud doesnโ€™t free up memory on your phone unless you delete local copies. After downloading, check the DCIM and Download folders and clear them.

Extreme measures: reset to factory settings

If all the previous methods didn't work, and the phone is still slowing down, you're left resetting to factory settings, which is a radical way to delete all the data, including apps, photos, contacts and settings.

  • ๐Ÿ”„ Make a backup copy through Settings โ†’ Additionally. โ†’ Backup and reset โ†’ Local backup.
  • โ˜๏ธ Sync contacts, notes and passwords with your Mi Account or Google.
  • ๐Ÿ“Ž Save important files to your PC or cloud.
  • ๐Ÿ“ฑ Remember or take a picture of your network settings (Wi-Fi passwords, APN mobile-internet).

Resetting instructions:

  1. Go to Settings โ†’ About the phone โ†’ Reset settings.
  2. Select to erase all data (reset to factory).
  3. Enter the password from the Mi Account (if linked).
  4. Confirm the action and wait for the reboot (it will take 5-10 minutes).

Once reset, the phone will be like new. Don't restore the backup right away -- first check if the reset solves the memory problem. If so, recover the data selectively, avoiding unnecessary apps.

๐Ÿ’ก

If the phone still brakes after reset, check the health of the drive using the AIDA64 app (Storeroom โ†’ Memory Status) may need to replace the internal drive.

7.How to prevent future memory clogging

To avoid having to clean every few months, follow these rules:

  • ๐Ÿ“ฑ Remove unused applications immediately after installation if they are not needed.
  • ๐Ÿ“ท Optimize your photos and videos: In the Gallery, enable Storage Optimization (saves compressed versions). Use Google Photos in High Quality Mode (unoriginal, but saves space).
  • ๐Ÿ”„ Clean the cache regularly: Install SD Maid or Files by Google for automatic cleaning.Enable weekly cleaning in Security โ†’ Autocleaning.
  • ๐Ÿšซ Avoid junk apps: Don't install memory cleaners from unknown developers - they often become a source of garbage themselves.
  • ๐Ÿ“ฅ Control downloads: Remove the habit of saving everything from messengers (on Telegram and WhatsApp, set up automatic media removal). โ†’ Annexes โ†’ Permits โ†’ Storage to restrict applications access to memory.

If you install new apps frequently, use Island or Shelter, which isolates test application data from the main system.

Frequent questions

โ“ Why does it fill up quickly after cleaning up the memory?
This is due to: Automatic caching of applications (especially social networks and instant messengers); hidden updates of system components (for example, Google Play Services); background synchronization of data (photos, email, cloud backups); Solution: disable auto-update applications in Google Play and set limits on background activity in Settings โ†’ Battery โ†’ Energy Management.
โ“ Can I increase the memory of Xiaomi Mi 9?
No, Xiaomi Mi 9 does not support microSD cards.The only ways: Use OTG-Transfer data to the cloud, replace internal drive (requires phone disassembly and repair skills).
โ“ Is it safe to delete the folder? Android/obb?
Yes, but with reservations: /Android/obb/ files are additional game data (graphics, levels) and deleting will cause game progress to reset if it is not synced to the cloud, the games themselves will remain functional, but may require re-uploading data, and we recommend that you move the folder to your PC first and then delete it from your phone.
โ“ How to clear your memory if your phone is not switched on?
If the Mi 9 doesn't boot due to memory shortage: Press Power + Volume up to log in to Recovery Mode. Select Wipe & Reset โ†’ Wipe Cache. If it doesn't work, do Wipe Data (full reset). Even if Recovery doesn't load, connect your phone to your PC and use the Mi Flash Tool to flash (this will delete all data).
โ“ Why? MIUI It shows that the memory is full, but there are few files?
This can be caused by: Hidden system files (log files, error dumps); file system damage (check through AIDA64); MIUI error (reboot or reset helps); run ADB command: adb shell df -h It will show real memory usage by partition.