How to completely clean the memory on Xiaomi Mi 8: from cache to system garbage

Xiaomi Mi 8 is still a popular smartphone in 2026, but its 64/128 GB of memory is often clogged with unnecessary files. If your device starts to slow down, issue a notification โ€œNot enough memoryโ€ or refuses to install updates, itโ€™s time to conduct a deep cleanup. In this article, we will analyze all the ways to free up space: from basic (cache removal) to advanced (cleaning system logs and dalvik cache through Recovery).

The Mi 8 is a MIUI firmware that actively caches data and creates duplicate files, such as photos from the Gallery can be automatically copied to the MIUI/Extra folder, and instant messengers like Telegram or WhatsApp store media in hidden directories, and we will show you how to find and remove this garbage without breaking the system.

Important: The Mi 8 runs Android 9/10 (depending on the MIUI version), so some methods (like cleaning through Storage Sense) are not available here, but there are unique features like deep cleaning MIUI and manual log files management.

1. Basic cleaning: cache, debris and temporary files

Start with the simplest thing, removing app cache and system debris, and this will free up 1 to 5 GB of storage without risking losing important data.

How to clean the cache on Xiaomi Mi 8:

  • ๐Ÿ“ฑ Open the Settings. โ†’ Annexes โ†’ Application management.
  • ๐Ÿ” Slip three dots in the top right corner and select "Sort by sizeยป.
  • ๐Ÿ—‘๏ธ For each major app (e.g. Facebook, Instagram, YouTube) click Storage โ†’ Clear the cache.
  • ๐Ÿš€ For mass cleaning, use the settings โ†’ Memory. โ†’ Cleaning (garbage iconยป).

Note that apps with over 500MB of cache are the main memory eaters, such as Google Play Services or MIUI Launcher can take up to 1-2GB per cache.

๐Ÿ’ก

If the cache returns quickly after cleaning, turn off auto-update apps in Google Play or limit background activity in Settings โ†’ Battery โ†’ Power Saving Mode.

2. Removal of duplicates and unnecessary media files

Xiaomi Mi 8 It has a nasty feature: automatic duplication of photos and videos, for example, pictures from WhatsApp or Viber are saved in the folder of the messenger and in the folder of the messenger. DCIM/Camera. To find and remove duplicates:

Use the built-in tool โ€œDuplicate Searchโ€:

  1. Open the gallery โ†’ Albums โ†’ Utilities โ†’ Search for duplicates.
  2. MIUI will scan the storage and show the duplicate files.
  3. Select unnecessary duplicates and click Remove.

For deep media cleanup, use third-party tools like Files by Google or SD Maid.

  • ๐Ÿ“ธ Blurred or unsuccessful photos (such as random screenshots).
  • ๐ŸŽฅ Low-resolution videos (remainders from TikTok or Instagram Stories).
  • ๐Ÿ”Š Audio files without tags (downloads from VKontakte or YouTube Music).
Where else is the unnecessary media hiding?
MIUI/Extra, Bluetooth, Download/Telegram and Android/data folders (which store game caches like PUBG Mobile or Genshin Impact) require root rights or a file manager with access to system partitions like Mixplorer to clean them.

3. Clearing system logs and dalvik cache (for advanced)

If the basic methods didn't work, it's time to remove system debris: error logs, temporary update files and dalvik-cache.This will free up 500MB to 1.5GB, but requires caution.

Method 1: Recovery Mode (without root):

  1. Turn off the phone.
  2. Press Volume Up + Power until the Mi logo appears.
  3. From the Recovery menu, select Wipe & Reset โ†’ Wipe Cache.
  4. Confirm the action and restart.

Method 2: Through ADB (for power users):

adb shell


su




rm -rf /data/dalvik-cache/*




rm -rf /cache/*

โš ๏ธ Attention: Do not delete folders /data/app or /system โ€” This will result in loss of user data or a device blink. If you are not sure about the commands, use only the first method (via Recovery).

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

4.Storage optimization through MIUI Lab (hidden functions)

MIUI has hidden memory management tools that you can't see in standard settings, so you can activate them.

  1. Go to Settings. โ†’ The phone.
  2. Tap 5 times on the MIUI version until the notification โ€œYou became a developer!โ€ appears.
  3. Back to Settings โ†’ Additionally. โ†’ For developers.
  4. Activate MIUI Optimization (MIUI optimization).

Now in the Memory menu will appear new options:

  • ๐Ÿ”„ ยซDeep Cleanup โ€“ Deletes residual files of uninstalled applications.
  • ๐Ÿ“Š ยซStorage analysis" - shows the distribution of memory by category (system files, user data, etc.).
  • ๐Ÿšซ ยซBackground caching prohibition โ€“ restricts caching for selected applications.

Backup important data | Charge your phone at least 50% | Disable two-factor authentication in messengers | Remember account passwords (after cleaning, you may need to re-enter)

-->

5. Transfer of applications to SD-card (if supported)

Xiaomi Mi 8 doesnโ€™t officially support memory expansion SD-But there's a workaround for moving some of the applications:

  1. Put it in. SD-map (class recommended) UHS-I U3 speed).
  2. Format it as internal memory through Settings โ†’ Memory. โ†’ SD-map โ†’ Set up as an internal.
  3. After formatting, go to Settings โ†’ Apps, select the desired application and click Storage โ†’ Change. โ†’ SD-map.

Limitations of the method:

  • โŒ Not all apps support portability (such as WhatsApp or Banking apps).
  • โš ๏ธ After extraction SD-Maps of the transferred applications will stop working.
  • โšก Speed of application with SD-cards are lower than internal memory.

โš ๏ธ Attention: Formatting SD-The card as internal memory deletes all the data on it and makes it tied to this phone. Once removed, the card cannot be read on other devices without re-formatting.

6.Reset to factory settings (last chance)

If none of the methods worked and the Mi 8 has less than 1 GB of free space, youโ€™ll have to do a hard reset, which will delete all data, including apps, photos and settings, but will return the phone to a โ€œcleanโ€ state.

How to reset Xiaomi Mi 8 to factory settings:

  1. Make a backup through Settings โ†’ Additional โ†’ Backup and Reset.
  2. Go to Settings โ†’ About the phone โ†’ Reset settings.
  3. Choose to erase all data and confirm the action.
  4. After the reboot, the phone will look like new.

Alternative method (if the phone is not turned on):

  1. Press Volume Up + Power to Enter Recovery.
  2. Choose Wipe & Reset โ†’ Wipe All Data.
  3. Confirm the reset and wait until it is completed.
Cleaning methodDifficultyPlace vacatedRisks.
Cleaning up the app cacheโญ (simple)1-5 GBNo.
Removal of media duplicatesโญโญ (middle-of-the-road)500 MB-3 GBYou can accidentally delete the necessary files
Clearing dalvik cache via Recoveryโญโญโญ (difficult)500 MB-1.5 GBIf an error occurs, the system may fail.
Transfer of applications to SDโญโญ (middle-of-the-road)Depends on the size of the applicationsApplications can work slower
Reset to factory settingsโญโญโญ (difficult)All the space.Loss of all data

๐Ÿ’ก

Before resetting to factory settings, be sure to untie the Mi Account in Settings โ†’ Xiaomi Account, otherwise after resetting the phone will require entering the old password (Mi Cloud Lock protection).

7. How to prevent memory filling in the future

To prevent the problem from recurring, set up the Mi 8 to auto-optimize:

  • ๐Ÿ”„ Include โ€œAutocleaningโ€ in Settings โ†’ Memory. โ†’ Automatic cleaning (set a schedule, for example, once a week).
  • ๐Ÿ“ฅ Limit downloads in messengers: in Telegram, turn off Media Autoload in Settings โ†’ Data and memory.
  • ๐ŸŽฎ For games, use cloud-based saves (such as Google Play Games) to avoid storing heavy files locally.
  • ๐Ÿ“‚ Check the Download folder regularly โ€“ unnecessary ones accumulate here. APK-file.

Also install lightweight analogues of popular applications:

  • ๐Ÿ“ท Instead of Instagram, Instagram Lite.
  • ๐ŸŽต Instead of Spotify, YouTube Music (or offline player) VLC).
  • ๐Ÿ“บ Instead of Netflix, Tubi or Plex (if you watch content on the web).
โ“ Why is it that memory is quickly filled up after cleaning?
This is due to background app activity and automatic updates. MIUI has caching enabled by default to speed up work, but on the Mi 8 with its modest 64GB, this becomes a problem. Solution: Turn off app auto-update on Google Play โ†’ Settings. Limit background activity in Settings โ†’ Battery โ†’ Power Saving Mode. Use Greenify to โ€œfreezeโ€ unnecessary services.
โ“ Can I clean my memory without losing data?
Yes, if you only use secure methods: Clearing the cache of applications, removing duplicates through the Gallery, transferring files to the PC or cloud (Google Drive, Mi Cloud), avoid cleaning dalvik cache or system folders without a backup.
โ“ What to do if your phone says โ€œNot enough memoryโ€ but there is enough space?
This error occurs due to memory fragmentation or MIUI failure. Help: Reboot phone, clear cache via Recovery (see section 3). Update firmware to the latest version of MIUI. If the problem remains, reset to factory settings.
โ“ How to clear your memory if your phone is not switched on?
If the Mi 8 doesn't respond to the power button but is charging (the indicator is on), try: Press Volume Up + Power for 10-15 seconds for a forced reboot. If it doesn't, plug your phone into your PC and use the Mi Flash Tool to flash it (an unlocked bootloader is required).
โ“ Should you use cleaning applications (such as Clean Master)?
No, and here's why: These applications often become the source of garbage themselves. They delete the cache of all applications, which leads to slowdown. MIUI already have built-in cleaning tools (see section 1 โ€” SD Maid (for experienced users only).