How to Clean Up Xiaomi Phone’s Internal Memory Completely: From Garbage to System Files

Why does Xiaomi’s memory get clogged on its own?

Owners of Xiaomi, Redmi and POCO smartphones often face a problem: the memory fills up β€œon its own” even though you haven’t installed new apps or downloaded files. It’s not just the cache that’s to blame, but the MIUI architecture, which actively uses internal storage for temporary files, system logs and duplicate media. For example, the Gallery app automatically creates thumbnails for each photo, and the Screen Records save drafts of the video even after removal.

Another reason is preloaded data. Many apps (including system ones) download content in advance: music covers, video previews to Mi Video, offline maps to Mi Maps. These files take up gigabytes but don't show up in the standard file manager. And if you've ever used the app clone (duplicating messengers), each clone creates a separate cache folder - and it doesn't clear when you delete the original application.

Method 1: Built-in MIUI cleaning – what it actually removes

The most obvious method is to use the built-in Cleanup utility, but few know that it only removes 30-40% of the garbage.

  • πŸ—‘οΈ Application cache (temporary files that can be restored on the next run)
  • πŸ“ Empty folders and.thumb files (miniatures)
  • πŸ” System logs (/data/log) lately 7 days
  • πŸ“₯ Unfinished downloads from the browser and Mi Downloads

Here's what's NOT removed:

  • 🚫 System application cache (e.g. Mi Security or Mi Account)
  • 🚫 Photo and video duplicates created by Google Photos or Mi Cloud
  • 🚫 Residual files after deleting applications (lib and odex folders)
  • 🚫 Logs of kernel errors (/data/tombstones), weighable 1 GB

πŸ’‘

After cleaning through the built-in utility, be sure to restart the phone - this will free up an additional 100-300 MB, which take up "ghost" processes.

To get to hidden files, you need to use the advanced mode:

  1. Open Clean β†’ press three dots in the upper right corner.
  2. Select Deep Clean β†’ tick all items, including System cache.
  3. Confirm the action and wait for the analysis (can take up to 5 minutes).

Method 2: Manually Cleaning Folders – Where to Look for Hidden Garbage

MIUI hides from the user many service folders that can be manually cleaned, you will need a file manager with root permissions (for example, MiXplorer or Solid Explorer) or ADB-Here are the key directories:

folderWhat it keeps.Is it safe to remove
/data/logLogs of system and applicationsYes (releases 200-500MB)
/data/tombstonesMemory dumps when failuresYes (can weigh up to 1GB)
/data/media/0/MIUI/BackupBackup copies of settingsPartially (remove old backups)
/data/media/0/Android/obbAdditional game filesOnly if the game is deleted
/data/media/0/Download/.thumbnailsMiniatures of downloaded filesYes (releases 50-200MB)

To access these folders without root rights:

  1. Connect your phone to your PC and enable USB Debugging in Settings β†’ About Phone β†’ MIUI version (click 7 times).
  2. Open the command line on your PC and type in: adb shell su rm -rf /data/log/* rm -rf /data/tombstones/*
  3. Reset the device.
What happens if you delete system files?
Deleting files from /system or /vendor folders will cause the phone to lose its functionality. MIUI will not be able to boot and will require Fastboot flashing. Never delete files with.apk,.odex or.so extensions in these directories!

⚠️ Note: Removing files from /data/app or /data/data If you don't know the structure, you'll crash applications, like deleting the com.android.vending folder would break the Google Play Market, and you'd have to manually reinstall it.

Method 3: Transfer applications to SD-Map - Why it doesn't always work

MIUI allows you to transfer applications to SD-map, but with reservations:

  • βœ… It only works for applications that support adoptable storage (e.g. Spotify, VLC).
  • ❌ It does not work for system applications and most games (e.g. Genshin Impact or GI). PUBG Mobile).
  • ⚠️ After the transfer, the application may slow down if SD-grade-up UHS-I (U3).

How to transfer correctly:

  1. Put it in. SD-Card (SanDisk Extreme or Samsung recommended) EVO Plus).
  2. Go to Settings β†’ Applications β†’ Application Management.
  3. Select the application β†’ Warehouse β†’ Change. β†’ SD-map.
  4. Confirm the transfer (may take up to 10 minutes).
πŸ“Š What's the volume? SD-You use the cards in Xiaomi?
Up to 32GB.
64GB
128GB
256GB and more
I don't use it.

If the option to change is inactive, it means:

  • πŸ“± The app does not support portability (check Google Play in the "Technical Data" sectionΒ»).
  • πŸ”’ SD-The card is formatted as a portable storage (you need to format it as internal memory, but this will delete all data!).
  • πŸ› οΈ The phone has disabled the option for developers Forced to allow the transfer to SD (included in the settings β†’ Additionally. β†’ For developers).

Method 4: Cleaning the Google Play Services cache and other β€œunkillable” processes

Google Play Services is Xiaomi’s main memory eater, a system process that caches data for Google Maps, YouTube, Gmail, and other services, but never automatically clears the cache, which can take up to 3-5 GB per year.

How to clean:

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Press three points. β†’ Showing System Processes.
  3. Find Google Play Services β†’ Storage β†’ Clear the cache.
  4. Repeat for Google Play Market, Services Framework and Download Manager.

After cleaning:

  • πŸ”„ Reboot your phone – it will reset the background processes.
  • πŸ“Ά Connect to Wi-Fi and wait for account sync (may take time) 10-15 minute).
  • 🚫 Don’t Clean Up Data (Clean All Data) – This Will Break Google Play!

Turn off automatic app updates in Google Play|Check the operation of push notifications|Remove unnecessary accounts from Settings β†’ Accounts.|Reboot the phone-->

⚠️ Note: If notifications from Gmail or YouTube stop coming after cleaning up Google Play Services, check your sync settings: β†’ Accounts. β†’ Google β†’ Sync your account. Turn on all the switches and wait for the update.

Method 5: Remove duplicate photos and videos with hidden MIUI features

MIUI has a built-in tool to find duplicate media files, but it's hidden in the back of the menu. The algorithm looks not only for identical files, but also for similar ones (like photos with different resolutions or cropped versions).

How to find duplicates:

  1. Open the Gallery β†’ Press three points β†’ Control.
  2. Select Duplicate Search (if no item, update the Gallery via the Mi App Store).
  3. Wait for analysis (it can take up to 30 minutes for 10,000+ files).
  4. Mark unnecessary duplicates and click Delete.

What to do if the tool does not find duplicates:

  • πŸ” Use third-party apps: Files by Google (has a Cleanup function) β†’ Duplicates) or CCleaner.
  • πŸ“ Check the folders: /storage/emulated/0/DCIM/.thumbnails /storage/emulated/0/Pictures/Screenshots/duplicates
  • 🌐 Upload a photo to Google Photos and use the web version to search for duplicates (Utilities tool) β†’ Search for duplicates).

πŸ’‘

Duplicates take up to 20-30% of memory on Xiaomi, and a lot of them appear when using Google Photos in the β€œOriginal Quality” mode + the standard MIUI Gallery, which create individual copies for editing.

Method 6: Resetting to factory settings – when justified

If all previous methods fail, you will have to reset hard, which will delete all data, including:

  • πŸ“± Applications and their settings
  • πŸ“‚ Photos, videos, music (if not on the list) SD-map)
  • πŸ”‘ Accounts and passwords (except Mi Account data if the phone is tied)
  • πŸ“‹ Call logs and SMS

When a discharge is justified:

  • πŸ†˜ The phone brakes even after cleaning (boot) CPU > 70% in Settings β†’ The phone. β†’ Status of the system).
  • πŸ“‰ Free memory less than 10% of the total (for example, 2 GB out of 16 GB).
  • πŸ”„ You're planning to sell your phone.

How to do the reset correctly:

  1. Create a backup: Settings β†’ Additional β†’ Backup and Reset β†’ Local Backup
  2. Untie accounts: Settings β†’ Accounts β†’ Google β†’ Delete Settings Account β†’ Mi Account β†’ Sign out
  3. Reset: Settings β†’ Additional β†’ Backup and Reset β†’ Resetting β†’ Erase all data
  4. After the reboot, do not restore data from the backup – first check if the memory problem has been resolved.

⚠️ Attention: On phones with MIUI 14+ Data Protection (on default) reset can take up to 1 hour.Do not interrupt the process, even if the screen is out - the charging indicator will flash red during the operation.

Method 7: Optimizing Memory for Games – How to Make Space Without Losing Progress

Games like Genshin Impact, Call of Duty Mobile or Honor of Kings take up to 10-15 GB, most of which are cache textures and updates. It's useless to manually remove them: the game just downloads everything again.

Problem.DecisionSaving memory
Cash textureIn the game settings, reduce the quality of the graphics to the Average1-3 GB
UpdatesTurn off automatic updates to Google Play for the game500 MB-1 GB
APK duplicatesDelete /Android/obb/com.game.package for remote play2-5GB
Logs of errorClear the folder /Android/data/com.game.package/files/logs100-500MB

For Genshin Impact and similar games:

  1. Start the game β†’ Settings β†’ Another β†’ Storage optimization.
  2. Select Remove Packet Cache (this will remove unnecessary update files).
  3. Turn off Resource Preload in the graphics settings.

If the game supports cloud-based saves (e.g., Mi Cloud or Google Play Games), move the progress to the cloud, delete the game, and then reinstall it. 5-7 GB.

FAQ: Frequent questions about Xiaomi memory cleanup

Can Xiaomi memory be cleaned without data loss?
Yes, if you use methods 1-5 from this article, only hard reset (method 6) deletes all data, and we recommend starting with manually cleaning folders (/data/log, /data/tombstones) and removing duplicate photos.
Why does the memory re-energize in a few days?
The culprits are the background processes of MIUI and Google Play Services. They constantly cache data to speed up work. Solution: Turn off automatic sync in Settings β†’ Accounts β†’ Google β†’ Account Sync. Limit application background activity: Settings β†’ Battery β†’ Battery Mode Selection β†’ Energy Saving. Install Greenify (requires root) to β€œfreeze” unnecessary processes.
How to transfer applications to SD-card if the option is inactive?
If the button is moved to SD doesn't work: πŸ”§ Format. SD-The card is an internal memory (delete all data on it!). πŸ› οΈ Enable the option for developers to force the transfer to SD. πŸ“± Use the AppMgr app III (requires root) for forced transfer. MIUI 13+ portability SD Disabled at system level is a limitation of Xiaomi.
What files can be deleted in the DCIM folder so you don’t lose your photo?
In a file. DCIM Safe to delete:.thumbnails folder (miniatures, automatically restored) files with.nomedia extension. folder Camera/bursts (Serial photographs, if not needed). ❌ Do not delete: files.jpg,.png,.mp4 without verification – they can be hidden camera footage.
How to clean up memory on Xiaomi if the phone is not turned on?
If the phone doesn’t load (hangs on the logo or flashes a red light), try: Boot in Recovery Mode: pinch Power + Volume up for 10 seconds. Select Wipe & Reset β†’ Wipe Cache (not Wipe Data, otherwise you’ll lose everything!) If it doesn’t work, connect your phone to your PC and use the Mi Flash Tool to flash it back (instructions on Xiaomi’s official website). ⚠️ Interrupting the firmware process can finally kill the phone!