How to Remove Downloaded Content on Xiaomi Phone: From Files to System Garbage

The downloadable content on Xiaomi smartphones is not only the obvious files from the Download folder, but also hidden application data, browser cache, temporary messenger files and even system log files that take up gigabytes of memory. Many users face a situation where the phone’s memory is filled with β€œunknown what”: MIUI shows that 20-30 GB is occupied, but manually find and delete these files does not work. In this article, we will analyze all possible sources of downloadable content on Xiaomi, Redmi and POCO, including hidden folders, cache of system applications and garbage from updates.

Feature of firmware MIUI β€” Aggressive caching of data to speed up work, but often it leads to overflow of memory. For example, the Gallery application can store thumbnails of photos in a hidden folder.thumbnails, and Mi Browser can download media files in the background. We will not only look at standard cleaning methods through Settings. β†’ Memory, but also manual methods using a file manager, ADB-commands and even reset partition cache through recovery mode.

It is important to understand: simply removing files from the Download folder solves the problem only on the Internet. 10-15%. The bulk of the:

  • πŸ“ Cache applications (including system applications, such as com.miui.gallery)
  • πŸ”„ Temporary update files (folder.OTA)
  • πŸ“₯ Hidden downloads of messengers (Telegram, WhatsApp, Viber)
  • 🎡 Media files from notifications (for example, previews from TikTok or Instagram)
  • πŸ”§ Log files of the system (log folders, bugreport)

If your Xiaomi gives you a notification β€œMemory is almost full” but you don’t find large files, this article will help you find and delete everything you don’t need, including data that isn’t displayed in the standard interface.

1. Standard cleaning through MIUI settings

To start with, the simplest method that works for most users, MIUI has a built-in memory cleaner, but it often skips hidden files. Here's how to use it correctly:

Open Settings β†’ Memory. Here you will see a diagram of occupied space. Click on Clean at the bottom of the screen. The system will scan the device and prompt you to delete:

  • πŸ—‘οΈ Application cache (temporary files that can be safely deleted)
  • πŸ“‚ Downloaded files (Download folder)
  • πŸ“Ž Duplicate files (if the function of searching for duplicates is enabled)

However, this method has limitations:

⚠️ Note: Standard cleaning does not remove the cache of system applications (such as Mi Video or Music), as well as files from hidden folders such as.thumbnails or.OTA. Removal of these will require the manual methods described below.

After cleaning, restart the phone to help the system correctly recalculate the free space, and if after rebooting the memory again shows full, move to the next partition.

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

2. Manual deletion of files through the file manager

Deep cleaning requires a file manager with access to system folders, and we recommend using a built-in Files or third-party applications like Solid Explorer (with root enabled if you have superuser rights).

Open the file manager and go to the root directory (/storage/emulated/0/).

  • πŸ“‚ Download is the standard download folder. Delete all unnecessary files, especially files with extensions.apk,.zip,.rar.
  • πŸ“‚ DCIM/.thumbnails β€” Photo and video thumbnails. You can delete all content (files will be restored automatically).
  • πŸ“‚.OTA β€” update-file MIUI. If the update is already installed, the folder can be cleaned.
  • πŸ“‚ Android/data β€” cache of games and applications. Delete the folders of applications that you have not used in a long time.
  • πŸ“‚ MIUI/Backup β€” backups of the system. If you don't need backups, delete them.

The Android/obb folder often takes several gigabytes to store game data (such as Genshin Impact or Call of Duty Mobile) only if you are sure that the game will no longer be needed.

For convenience, use size sorting: in Solid Explorer, click three dots β†’ Sort by size β†’ Size (in descending order) so you can quickly find the largest files.

β˜‘οΈ What can be safely removed manually

Done: 0 / 5

3. Cleaning the cache of system applications

Many MIUI applications (e.g. Gallery, Music, Mi Browser) store gigabytes of cache that are not removed by standard methods.

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Select an app (e.g. Gallery).
  3. Press Warehouse. β†’ Clear the cache.
  4. For complete cleaning, click Clear Data (⚠️ This will remove all application settings!).

Pay particular attention to the following annexes:

  • πŸ–ΌοΈ Gallery (com.miui.gallery) – cache of thumbnails and edited photos.
  • 🌐 Mi Browser (com.android.browser) – uploaded files and cache of pages.
  • 🎡 Music (com.miui.player) - cache of album covers.
  • πŸ“± Topics (com.android.themes) – downloaded themes.

⚠️ Attention: Clearing the data of the Settings app (com.android.settings) may reset some system settings (such as Wi-Fi or sound settings.

To speed up the process, use batch cleaning:

  1. In Application Management, click on three dots β†’ Sort by size.
  2. Select applications with a large cache (from 100 MB) and clean them one by one.

πŸ’‘

If after cleaning the cache, the application is slower, restart the phone - the system will restore the necessary temporary files.

4. Deletion of hidden files of messengers and social networks

Messengers (Telegram, WhatsApp, Viber) and social networks (TikTok, Instagram) are actively downloading media files in the background. These files take up space, but do not appear in the gallery.

AnnexThe path to filesWhat can be removed
Telegram/storage/emulated/0/Telegram/Telegram ImagesAll media files except important ones
WhatsApp/storage/emulated/0/WhatsApp/MediaWhatsApp Images folders, WhatsApp Video
Viber/storage/emulated/0/Viber/mediaAll files except chat backups
TikTok/storage/emulated/0/TikTok/cacheAll cache (video previews, thumbnails)
Instagram/storage/emulated/0/Android/data/com.instagram.android/cacheCash stories and video previews

To prevent automatic downloading of media in the future:

  • In Telegram: Settings β†’ Data and Memory β†’ Media Autoboot β†’ Turn off download for mobile data.
  • On WhatsApp: Settings β†’ Storage β†’ Storage Management β†’ Delete unnecessary files.

⚠️ Attention: Deletion of folder WhatsApp/Databases This will lead to the loss of chat history! WhatsApp/Databases/msgstore.db.crypt14 β€” It is not recommended to touch them.

How to recover deleted files from messengers?
If you have deleted important media from your messenger folders, try recovering it through apps like DiskDigger or Recuva (root access required), but the chances of recovery depend on whether the files have been overwritten by the new data.

5. Cleaning through Recovery Mode (for power users)

If standard methods didn’t help and memory is still filled with invisible files, try clearing the partition cache through Recovery Mode, which doesn’t delete user data, but resets the system cache, which can take up to 1-2 GB.

Instructions for Xiaomi with MIUI Recovery:

  1. Turn off the phone.
  2. Press the Volume Up + Power buttons before the Mi logo appears.
  3. Select the language from the recovery menu (if there is one).
  4. Go to Wipe & Reset β†’ Wipe Cache.
  5. Confirm the action and wait for the completion.
  6. Reboot the phone (Reboot) β†’ Reboot to System).

If you have custom Recovery installed on your device (such as TWRP), the process is slightly different:

  1. In TWRP, select Wipe β†’ Advanced Wipe.
  2. Check Cache only (do not touch Data or System!).
  3. Swipe to Wipe (Swipe to Wipe) with your finger.

⚠️ Warning: Don't confuse Wipe Cache with Wipe Data! The second option will completely reset the phone to factory settings, deleting all your files and apps.

πŸ’‘

Clearing the cache through the recavators does not delete user data, but can speed up the system by removing temporary update files and logs.

6.Use of ADB for deep cleaning (advanced method)

For users familiar with ADB (Android Debug Bridge), there is an option to remove system debris that is not available through standard settings, a method that requires connecting the phone to a computer and enabling debugging over USB.

Steps to clean through ADB:

  1. Turn on Developer Mode: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  2. Return to Settings β†’ Additional β†’ For developers and enable USB debugging.
  3. Connect your phone to your PC and open the command line (Windows) or terminal (macOS/Linux).
  4. Enter the command to check the connection: Adb devices should appear the name of your device.
  5. Delete the cache of all applications with one command: adb shell pm trim-caches 1000000000 (this will clear the cache up to 1 GB).
  6. To delete temporary update files, do adb shell rm -rf /data/local/tmp/*

Additional useful commands:

  • πŸ“Š View the list of large files in /data: adb shell du -ah /data | sort -rh | head -n 20
  • πŸ—‘οΈ Delete the system log files: adb shell rm -rf /data/log/*

⚠️ Attention: Rm teams -rf If you don't specify the right path, you can delete critical system files.

7. Cleaning automation: applications and scripts

To avoid manually clearing memory, you can use third-party applications or scripts to automatically clean it.

Cleaning applications:

  • 🧹 SD Maid – removes unnecessary files, duplicates and cache (requires root for full functionality).
  • πŸ—‘οΈ Files by Google is a simple tool for finding large and unnecessary files.
  • πŸ” Storage Analyzer – visualizes occupied space by folders.

Automatic scripts (for root users):

  1. Install Tasker and create a task for weekly cache cleaning.
  2. Use the script for Termux: pkg install termux-api termux-storage-setup cd ~/storage/shared rm -rf Download/.thumbnails rm -rf *.apk rm -rf *.zip

MacroDroid is suitable for users without root rights - the application allows you to create automatic rules, for example, clean the Download folder once a week.

8 What to do if the memory is still full?

If after all the manipulations, the phone’s memory still shows full, the problem may lie in:

  • πŸ” Hidden sections (e.g, /data/app or /system), which are not displayed in the file manager.
  • πŸ› οΈ A damaged file system – in this case, only a reset to factory settings will help.
  • πŸ“± Mistakes. MIUI, when the system does not calculate free space (solved by flashing).

Extreme measures:

  1. Reset to factory settings (Settings) β†’ The phone. β†’ Resetting settings). ⚠️ Delete all data!
  2. Fastboot flashing (if the reset didn't help). For instructions for your model, look at the XDA Developers forum.
  3. Replacement of the memory module (relevant for older Xiaomi models with memory controller problems).

If you suspect that the problem is in the hardware (for example, the phone shows "memory is full", but in fact there are few files), contact the service center. This may be a sign of wear and tear of flash memory.

FAQ: Frequent questions about memory cleanup on Xiaomi

πŸ”Ή Why does memory not get released after deleting files?
This is due to the features of the F2FS file system (used in Xiaomi). After deleting files, the system does not immediately free up space - you need to restart or run the fstrim command via ADB: adb shell fstrim -v /data Also check if the update cache in the /cache folder takes up the place.
πŸ”Ή Can I delete the Android folder?
The Android folder contains application data (cache, settings, game saves) that cannot be deleted completely, which will cause malfunctions in the software: Android/obb β€” Game data (can be deleted if no games are needed). Android/data β€” App cache (remove selective, only unnecessary applications).
πŸ”Ή How to clear your memory if your phone is not switched on?
If Xiaomi isn’t booting but is responding to a PC connection: Connect your phone to your computer in Fastboot mode (clip Volume Down) + Power. Use the Mi Flash Tool to flash (delete all data!). If your phone is defined as a removable drive, use DiskPart (Windows) to clean partitions: diskpart list disk select disk X (where X is your phone) ⚠️ This will delete all data without the possibility of recovery!
πŸ”Ή Why? MIUI shows "Other" in the memory diagram?
Section "Other" in Settings β†’ Memory includes: System files (/system, /vendor). Kernel cache and log files (/proc, /sys). Data data ART/Dalvik-cache /data/dalvik-cache). SELinux files and encryption. You can only reduce this partition through root or reset settings.
πŸ”Ή How to Prevent Memory Filling in the Future?
So that memory doesn't get filled with garbage: πŸ“΅ Turn off autoload media in messengers. πŸ”„ Clean the cache regularly through Settings β†’ Memory. πŸ“‚ Transfer large files (video, games) to the SD-card (if supported). πŸ›‘οΈ Use Greenify to limit background activity of apps. πŸ“± Update. MIUI β€” In new versions optimized work with memory.