Manually Cleaning Internal Memory on Xiaomi: A Complete Guide to Freeing Up Place

Xiaomiโ€™s internal memory is clogged faster than it seems. Even with regular removal of apps and photos, the system continues to โ€œeatโ€ gigabytes of unknown where, the reason lies in hidden cache, remnants of MIUI updates, duplicate files and specific features of firmware. Unlike automatic โ€œcleanersโ€, manual cleaning allows you to spot-wipe unnecessary data without affecting important information.

This article will help you understand how to manually clean internal memory on Xiaomi without using third-party programs and the risk of damaging the system. MIUI, Hidden features (including working with.thumbnails folders, DCIM/.thumbnails We will focus on the Redmi Note models. 10/11/12, POCO X3/X4 mi 11/12, where the problem of memory shortage is especially acute due to the limited storage capacity in the basic versions.

Before you start, check the actual memory state: go to Settings โ†’ About Phone โ†’ Memory. If the graph shows employment of more than 80% with the minimum number of installed applications, your case requires deep cleaning. Importantly, all manipulations are performed without root rights, but some actions will require a connection to a PC.

1. Memory Occupation Analysis: What exactly takes place?

The first step is diagnostics. Without understanding which files are clogging up memory, cleaning will be inefficient. MIUI has a built-in analyzer, but it hides some of the system data. Here's how to get the whole picture:

Open Settings โ†’ Memory โ†’ Memory Analysis. The system will show the distribution by categories: "Apps", "Images", "Video", etc. However, it does not show:

  • ๐Ÿ“ Cash updates. MIUI (can weigh up 2-3 GB after several updates)
  • ๐Ÿ–ผ๏ธ.thumbnails folder with thumbnails (up to 1 GB on models with 128 GB of memory)
  • ๐Ÿ—‘๏ธ Remnants of Remote Applications in /data/app-lib
  • ๐Ÿ“ฑ Logs of the system (/data/log) and error dumps

For detailed analysis, use a file manager (e.g., built-in Mi File Explorer or Solid Explorer) to enable the display of hidden files in the manager settings and check the following folders:

folderLocation.What it keeps.Is it safe to remove?
.thumbnails/storage/emulated/0/DCIM/Image and video miniaturesYes, they're automatically restored.
MIUI/storage/emulated/0/MIUI/Themes, wallpaper, system backupsPartially (don't touch backup)
Download/storage/emulated/0/Download/Downloads from browsers and messengersYes, but check the contents.
Android/data/storage/emulated/0/Android/data/Application data (game cache, instant messengers)Remove only for remote applications
log/data/log/ (requires root or ADB)Logs of system and errorsYes, but no more than 1 time per month

โš ๏ธ Attention: Do not delete folders Android/obb and Android/media โ€” It stores game and media data, and if it's cleaned, it'll crash the applications.

2. Cleaning the application cache and system

Cash is the main memory eater at Xiaomi, and it's divided into three types:

  1. Application cache โ€“ temporary program files (up to 500 MB per application).
  2. Dalvik cache โ€“ optimized files to speed up Android (up to 1 GB).
  3. Cache of MIUI updates - the remains of firmware after updates (up to 3 GB).

To clean the standard cache:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Select an app (such as Facebook or Telegram).
  3. Press Warehouse. โ†’ Clear the cache.

For mass cleaning, use Settings โ†’ Memory โ†’ Clean. Here the system will prompt you to delete:

  • ๐Ÿ—‘๏ธ Unnecessary files APK (leftovers after application installation)
  • ๐Ÿ“ Temporary download files
  • ๐ŸŽฎ Cash games (if you do not play Genshin Impact or Call of Duty Mobile)
๐Ÿ“Š How often do you clean your Xiaomi cache?
Once a week.
Once a month
Only when memory ends
Never cleaned.

Critical information: On Xiaomi models with MIUI 13+, after clearing the cache through the settings, the system automatically reassembles the Dalvik cache within 10-15 minutes, which can cause lags. Don't be alarmed - this is a normal process.

3. Removal of duplicates and unnecessary media files

Photos and videos take up 60 percent of the memory on most smartphones, and the problem is compounded by:

  • ๐Ÿ“ธ Duplicates (created when editing in Google Photos or Gallery) MIUI)
  • ๐ŸŽฅ Screenshots (daddy) Pictures/Screenshots weigh 2-3 GB)
  • ๐Ÿ“น Videos from messengers (automatically saved in the WhatsApp/Media or Telegram/Telegram Video)

To search for duplicates:

  1. Open the MIUI Gallery โ†’ Albums โ†’ Duplicates.
  2. Click Remove duplicates (the system will leave the best quality file).

To disable automatic media saving from messengers:

  • ๐Ÿ“ฑ WhatsApp: Settings โ†’ chat โ†’ Visibility of media files โ†’ turn off.
  • ๐Ÿ’ฌ Telegram: Settings โ†’ Data and memory โ†’ Autoboot media โ†’ Choose "Never".

Remove duplicates in the MIUI Gallery|

Check Screenshots folder for old screenshots |

Disable auto-save media in messengers |

Transfer photos over 6 months to the cloud or PC-->

โš ๏ธ Attention: Folder DCIM/.thumbnails can weigh up 1 GB, but it can't be deleted through a standard file manager. Use Solid Explorer with root rights or command ADB: adb shell rm -rf /storage/emulated/0/DCIM/.thumbnails After removal, the miniatures will be restored automatically when the gallery is opened next.

4. Work with system folders (without root)

Even without superuser rights, you can clear some of your system folders through ADB (Android Debug Bridge), a method that is suitable for power users and requires a PC connection.

First, turn on the USB debugging:

  1. Go to Settings. โ†’ The phone.
  2. Click 7 times on the MIUI version to activate the developer mode.
  3. Back to Settings โ†’ Additionally. โ†’ For developers.
  4. Activate Debugging on USB.

Now connect your phone to your PC and execute the commands:

adb shell


pm clear com.miui.gallery #Cleaning up Gallery's cache




pm clear com.android.providers.media # Cleaning up media storage




rm -rf /data/local/tmp/* # Delete temporary files

For the POCO X3 Pro and Redmi Note 10 Pro models, clear the Google cache (unless you use Google Photos or Drive):

pm clear com.google.android.gms


pm clear com.google.android.gsf

What happens if you delete /data/dalvik-cache?
Deleting this folder will crash all applications until the next reboot, the system will restore it automatically, but the process can take up to 20 minutes during which the phone will brake, and on Xiaomi with MIUI 12.5+, it will also reset the battery optimization for all applications, which will temporarily increase its consumption.

5. Cleaning up the residues of remote applications

When you uninstall programs via Google Play or your MIUI settings, you often leave:

  • ๐Ÿ“‚ Folders in /storage/emulated/0/Android/data/ (weigh up 500 MBT)
  • ๐Ÿ—ƒ๏ธ Files in /data/app-lib/ (demand ADB root)
  • ๐Ÿ“„ Configuration files in /data/data/

To remove the residues:

  1. Install SD Maid (available on Google Play).
  2. Run the scan in the CorpseFinder section.
  3. Remove all found "body" applications.

For manual cleaning through ADB:

adb shell


cd /data/app-lib/




ls # See the folder list




rm -rf com.example.deletedapp # Replace to the folder name of the remote application

โš ๏ธ Attention: On Xiaomi with MIUI 14 when deleting folders /Android/data/ The file manager may have a "Folder is used" error. ADB Restart your phone before removing it.

6.Memory optimization for games and heavy applications

Games like Genshin Impact (15+GB), Call of Duty Mobile (5GB) or PUBG (3GB) take up not only memory space, but also create a huge cache.

For Genshin Impact:

  • ๐ŸŽฎ Remove the cache through Settings โ†’ Annexes โ†’ Genshin Impact โ†’ Warehouse โ†’ Clear the cache.
  • ๐Ÿ“‚ Transfer the data to SD-Card (if supported): Select Files in the game settings โ†’ Move it to SD.
  • ๐Ÿ”„ Turn off the background download of updates in the game settings.

For Call of Duty Mobile:

  • ๐ŸŽฏ Clear the cache through Settings โ†’ Data management โ†’ Clean all data (you will have to re-download resources).
  • ๐Ÿ“ฆ Reduce the graphics quality in the game settings to Medium โ€“ this will reduce the cache size from 2 GB to 800 MB.
Game.Cache size (max.)How to reduce
Genshin Impact18GBCleaning through settings + transfer to SD
Call of Duty Mobile5GBGraphics reduction + data cleanup
PUBG Mobile3GBRemoving unnecessary cards in the settings
Free Fire1.5 GBCleaning the cache after each update

๐Ÿ’ก

If the game starts to slow down after cleaning the cache, restart the phone.MIUI automatically optimizes performance for games within 5-10 minutes of launch.

7 Hidden MIUI functions for memory release

MIUI has built-in deep cleaning tools that are not visible in the basic settings. Here's how to activate them:

Deep Cleanup Mode:

  1. Open Security. โ†’ Cleanup.
  2. Click on the three dots in the upper right corner.
  3. Choose Deep Cleanup.
  4. Confirm the action (the system will delete up to 1.5 GB of unnecessary files).

Background cleaning:

  • ๐Ÿ”„ Go to Settings. โ†’ Battery and productivity โ†’ Application management.
  • ๐Ÿ“‰ Select Clean in the "Background Processes" section".
  • ๐Ÿ”‹ This will not only free up up to 300MB of memory, but also increase battery life.

System File Compression (available on MIUI 13+):

  1. Activate the Developer Mode (as described above).
  2. Go to For Developers โ†’ Memory compression.
  3. Enable Aggressive Compression (releases up to 500MB, but may slightly reduce performance).

๐Ÿ’ก

Deep Cleanup mode in MIUI removes not only cache, but also temporary update files, system logs and error dumps. Use it no more than 1 time every 2 weeks so as not to disrupt the stability of the work.

8.Prevention: How to prevent memory clogging

To avoid cleaning up your memory every month, set up Xiaomi for automatic optimization:

  • ๐Ÿ”„ Include Auto Cleanup in Security โ†’ Cleanup โ†’ Settings (set a schedule for weekly cleaning).
  • ๐Ÿ“ฅ Turn off auto-save media in instant messengers (as described in Section 3).
  • ๐Ÿ“ท Configure Google Photos to automatically upload photos to the cloud, then delete local copies.
  • ๐ŸŽฎ For gamers: in Game Turbo settings, turn off background optimization for unnecessary games.

For models with 64 GB of memory (Redmi 9A, POCO M3):

  • ๐Ÿ“ฑ Install lighter versions of apps (Facebook Lite, Messenger Lite).
  • ๐ŸŽต Store music in the cloud (Yandex Music, Spotify with cache up to 1 GB).
  • ๐Ÿ“บ Stream video instead of downloading (on YouTube Premium or Kinionk).

Check the Download folder regularly, where unnecessary APKs, PDFs and archives accumulate. Use Files by Google with Cleanup to automatically sort.

FAQ: Frequent questions about Xiaomi memory cleanup

Can Xiaomi memory be cleaned without a computer?
Yes, most of the methods in this article (cache cleaning, duplicate deletion, Gallery work) are done on the phone, but deep cleaning of system folders (e.g. /data/log) will require ADB and a PC connection.
Why does the memory fill up quickly after cleaning?
Reasons: Auto-update apps (especially games) disable it in Google Play. Background sync (like Google Photos or Mi Cloud). Limit your account settings. System logs. On Xiaomi, they can take up to 1 GB per month. Clean regularly through Security โ†’ Cleanup.
How to transfer applications to SD-map?
Starting with MIUI 12, transfer of applications to SD limited. Alternative methods: ๐Ÿ“ฑ Use it. SD-card as internal memory (formatted as part of the main storage but runs slower). ๐ŸŽฎ For games: In the settings of the game itself (e.g. Genshin Impact) there may be a data transfer option. ๐Ÿ“ Transfer only media files (photos, videos) through the file manager. Important: Not all applications support work with the file manager. SD. See the list of compatible options in Settings โ†’ Annexes โ†’ [Select the application] โ†’ Warehouse.
Is it safe to use cleaning applications (CCleaner, Clean Master)?
Xiaomi doesn't recommend these apps: ๐Ÿšซ Delete useful files (for example, data to speed up application launches). ๐Ÿ“Š Create an additional burden on the processor. ๐Ÿ”„ Often left behind by tails in the form of background services. Use built-in tools MIUI Files by Google โ€“ They are more secure and efficient.
How to clear memory on Xiaomi if the phone slows down and does not respond to commands?
If the device is frozen due to lack of memory: ๐Ÿ”‹ Hard reboot: Press the power button + volume increase by 10 seconds. ๐Ÿ“ฑ After restarting, immediately go to Safe Mode (press the power button). โ†’ long-press on "Switch off" โ†’"Safe regime"). ๐Ÿงน In Safe Mode, remove the heaviest apps through Settings โ†’ Annexes. ๐Ÿ”„ Restart your phone in normal mode and perform a deep clean (Section 7). If nothing helps, reset to factory settings (Settings) โ†’ Additionally. โ†’ Recovery and resetting, pre-saving data.