How to completely delete unnecessary files on Xiaomi Redmi Note 4X: 7 proven ways

Xiaomi Redmi Note 4X

mido

MIUI

self-cleaning

Many users find that after deleting files through standard Explorer, memory is only 10-15% free, and after a week the volume is reduced again, the reason is hidden files that do not appear in the GUI, as well as Dalvik cache and temporary MIUI data, occupying up to 3-5 GB. In this article, we will analyze all available cleaning methods, from basic to advanced, including working with ADB and engineering menus.

The Redmi Note 4X features both official and custom firmware (like LineageOS or Pixel Experience) and will have different cleaning methods, so weโ€™ll give you the nuances for each case. If youโ€™re not sure about your firmware, check out Settings โ†’ About Phone โ†’ MIUI version.

๐Ÿ“Š What kind of firmware are you using on Redmi Note? 4X?
Official MIUI
Custom (LineageOS, Pixel Experience, etc.)
I don't know what kind of firmware I have.
Other

1. Standard cleaning methods through MIUI

Start with built-in MIUI tools that donโ€™t require superuser rights (root) and are safe for beginners. Even if they donโ€™t delete all files, youโ€™ll free up 1-3GB of storage.

Open Settings โ†’ Memory. Here, the system will show the allocation of memory by categories: Applications, Images, Audio, etc. Click on the category to see a detailed list of files. For example, in the Other files section, logs (.log), temporary files (.tmp) and update cache are often hidden.

  • ๐Ÿ“ฑ Cleaning the app cache: Go to Settings โ†’ Annexes โ†’ App management, select a program (like Facebook or YouTube) and click Clear Cache. For bulk cleaning, use the Clean Everything button in the top menu.
  • ๐Ÿ—‘๏ธ Removal of unnecessary APK: In the same app menu, sort programs by size. Remove those you don't use (e.g., pre-installed Mi Games games or duplicate instant messengers).
  • ๐Ÿ“‚ Manual folder cleaning: Through the File Manager, go to /storage/emulated/0 and delete folders: Download - downloads from the browser; DCIM/.thumbnails โ€” photo-picture; Android/data โ€” game cache, PUBG Mobile or Call of Duty can take up to 2 GB).

โš ๏ธ Attention: Do not delete folders Android/obb and MIUI โ€” This can cause firmware to crash, and avoid files with the.odex and.vdex extensions, which are responsible for optimizing applications.

If the memory is still filling up quickly after cleaning, check the storage settings in messengers. For example, in Telegram, the media cache can take up to 10 GB. Go to Settings โ†’ Data and memory โ†’ Storage and set up automatic deletion of old files.

๐Ÿ’ก

To speed up your search for large files, use the size sorting in Mi File Manager. Click on the three dots in the upper right corner โ†’ Sort by โ†’ Size (in descending order).

2. System garbage disposal through the engineering menu

The engineering menu (#4636##) allows you to clear hidden logs and temporary files that are not visible in the standard interface, which works on all versions of MIUI, but requires caution - incorrect actions can lead to crashes.

Enter the combination ##4636## in the Phone app. Go to Storage tab and click Clear App Data.

  • ๐Ÿ“Š Dalvik Cache โ€“ cache of the Android virtual machine (can take up to 1 GB);
  • ๐Ÿ—ƒ๏ธ System Logs โ€“ system logs (up to 500 MB);
  • ๐Ÿ”„ Temporary Files โ€“ Temporary Update Files and Installer.

Press Clear against each item. After cleaning, restart your phone โ€” thatโ€™s a must, as the Dalvik Cache only recovers when you reboot.

โš ๏ธ Warning: If after cleaning through the engineering menu, the phone starts to brake, reset the cache in Recovery. + Volume Up, select Wipe Cache Partition and confirm the action.

Type of fileSize (example)Can I remove it?Effects of removal
Dalvik Cache500MB - 1GBYes.Applications will be re-optimized the next time they run (may slow down the first download).
System Logs200-500 MBYes.Error logs will disappear (not critical for the job).
Temporary Files100-300 MBYes.Remove update files that can be downloaded again.
Thumbnails100-800 MBYes.Photo/video miniatures will be re-generated.

๐Ÿ’ก

The engineering menu is the most efficient way to remove system debris without rooting permissions, but after cleaning, be sure to restart your phone or the changes won't take effect.

3. Clean up via Recovery Mode (without data loss)

Recovery Mode on the Redmi Note 4X allows you to reset the partition cache (Wipe Cache Partition) and delete unnecessary update files. This method is useful if the phone started to slow down after installing the MIUI update or custom firmware.

To enter Recovery:

  1. Turn off the phone.
  2. Press the Power and Volume Up buttons for 5-10 seconds until the Mi logo appears.
  3. Select the language (if there is one), then Wipe & Reset.
  4. Click on Wipe Cache (not to be confused with Wipe Data, which will reset your phone to factory settings!).
  5. Confirm the action and wait for the completion (it will take 1-2 minutes).

This method removes:

  • ๐Ÿ—‘๏ธ Update cache (/cache);
  • ๐Ÿ“ฆ Temporary installer files;
  • ๐Ÿ”„ Data that has not been properly deleted through standard methods.

โš ๏ธ Warning: If you see the Wipe Dalvik Cache in Recovery, you can choose it too, which is an analogue of cleaning through the engineering menu, but more reliable.

Charge your phone at least 50 times%|Make a backup copy of important data|Make sure you choose Wipe Cache over Wipe Data|Do not interrupt the process until it is completed-->

4. Delete hidden files with ADB (for advanced)

If standard methods didn't work, and you don't have root rights, you can use ADB (Android Debug Bridge) to delete hidden files, which requires connecting your phone to your computer, but allows you to clear out what's not available through the MIUI interface.

First, turn on the USB debugging:

  1. Go to Settings. โ†’ The phone.
  2. Click 7 times on the MIUI version to activate Developer Mode.
  3. Return to Settings โ†’ Additional โ†’ For developers and enable USB debugging.

Now connect your phone to your PC, open Command Prompt (Windows) or Terminal (macOS/Linux) and type:

adb shell


su -c "find /data /cache -name '*.log' -delete"




su -c "find /data /cache -name '*.tmp' -delete"




su -c "rm -rf /data/local/tmp/*"

These commands delete:

  • ๐Ÿ“œ All logs (.log) in sections /data and /cache;
  • ๐Ÿ—‘๏ธ Temporary files (.tmp);
  • ๐Ÿ“‚ Contents of the folder /data/local/tmp, where the update remains are stored.

โš ๏ธ Note: If the phone stops turning on after you execute the commands, you have deleted the critical files, in which case you will have to reflash the device via Fastboot!

What if the ADB canโ€™t see the device?
If the Adb device command does not show your Redmi Note after you connect your device 4X, Follow the following steps: 1. Install Mi drivers USB Driver from Xiaomi official website. 2. Check if debugging is enabled USB (Sometimes you need confirmation on your phone. 3. Try another one. USB-cable (original better). 4. Restart your phone and PC. If the problem persists, try using the Mi Flash Tool to force drivers to install.

5. Cleaning with root rights (for experienced users)

If you have Magisk or another root rights manager installed, you can delete even files that are protected by the system, such as pre-installed apps (bloatware) or remnants of old firmware.

Install System App Remover from Magisk or use Root Explorer. Go to /system/app and /system/priv-app, which stores system applications. Only remove those that do not have framework, services or miui in their name.

  • ๐ŸŽฎ MiGameCenter;
  • ๐Ÿ“บ MiVideo (if you use YouTube);
  • ๐Ÿ“ฐ MiBrowser (if you prefer Chrome).

On the Redmi Note 4X with MIUI 10 firmware and below, you can remove up to 1.5 GB of pre-installed applications, but on MIUI 11+ some of them are protected and their removal will lead to a failure.

Also, with root rights, you can clear the /data/app-lib folder where the remote application libraries are stored.

su


rm -rf /data/app-lib/*

โš ๏ธ Note: Removing files from /system If you don't have a backup, you can make your phone inoperable. TWRP before such operations.

6. Automatic cleaning with third-party utilities

If manual methods seem complicated, use specialized applications, but be careful: many of the cleaning machines in the Play Market create garbage themselves.

  • ๐Ÿงน SD Maid (requires root for complete cleaning): Removes empty folders, duplicates and remnants of deleted applications. The free version provides cache and basket cleaning.
  • ๐Ÿ” Files by Google: Shows large files and offers to delete unnecessary ones. Suitable for cleaning without root.
  • ๐Ÿ“Š CCleaner (cache only): Deletes app cache and browser history, but does not touch system files.

For the Redmi Note 4X The storage analyzer function in SD Maid. It shows which folders take up the most space, including the hidden ones. For example, you might find that the folder is the one that is the most spaced. /data/media/0/MIUI/sound_recorder It contains gigabytes of old voice recordings.

When using Files by Google, pay attention to the Cleanup section โ€“ here are collected:

  • ๐Ÿ“ Unnecessary screenshots (for example, take from messengers);
  • ๐ŸŽต Large audio files (voice messages from WhatsApp);
  • ๐Ÿ“บ Cache streaming video (for example, from TikTok or YouTube).

๐Ÿ’ก

The utility side is convenient for regular cleaning, but does not replace manual methods, for example, they will not be able to remove system logs or Dalvik cache without root rights.

7. Radical methods: reset to factory settings

If all previous methods failed and the phone is jammed to the limit, then you will have a full reset, which will delete all data, including accounts, photos and apps, but return the device to its original state.

The reset can be done in two ways:

  1. Through Settings โ†’ Settings โ†’ Additional โ†’ Restore and Reset โ†’ Reset. Choose Delete all data.
  2. Through Recovery: Log into Recovery Mode (as described above) and select Wipe Data โ†’ Wipe All Data.

After discharge:

  • ๐Ÿ”„ The phone will reboot and start setting up as new;
  • ๐Ÿ“ฑ All applications and data will be deleted (including photos on internal memory!);
  • ๐Ÿ” The binding to the Mi Account will remain if you have not disabled it in the settings.

โš ๏ธ Attention: On the Redmi Note 4X With a blocked bootloader, a reset via Recovery can lead to a request for a username and password from Mi Account. If you forget them, it will be difficult to unlock the phone - you will need an official request in support of Xiaomi.

To avoid data loss, before resetting:

  1. Copy photos and videos on your PC or in the cloud (Google Photos, Mi Cloud).
  2. Export contacts to VCF-file.
  3. Save a backup of your SMS via the SMS Backup & Restore app.
How to get around the Mi Account requirement after a reset?
If after Factory Reset, the phone requires you to enter data from Mi Account and you do not remember them, try: 1. Sign in via another device (for example, a PC) on account.xiaomi.com and reset your password. 2. If the account is not yours (the phone is bought by hand), contact the previous owner for unlocking. 3. In extreme cases, use the official Mi Unlock Tool, but it requires a wait of 7-30 days to unlock the bootloader.Warning: Do not use "bypass" methods with firmware through Fastboot - this can permanently block the bootloader. IMEI!

FAQ: Frequent questions about cleaning the Redmi Note 4X

Can I delete the MIUI folder to make room?
No, folder. /MIUI It contains critical firmware files, including themes, sounds and system fonts, and if it is deleted, it will lead to a bootloop, but it can be cleaned inside: MIUI/sound_recorder โ€” voice recordings; MIUI/screenrecorder โ€” screenshot; MIUI/extra โ€” Temporary theme files. You don't need root rights for this - a standard Explorer is enough.
Why does the memory fill up quickly after cleaning?
This is a typical Redmi Note problem. 4X because: ๐Ÿ”„ Auto-updates MIUI: The system downloads updates in the background (folder) /cache/ota). ๐Ÿ“ฑ Telegram, WhatsApp and Viber store media files in the /storage/emulated/0/Android/media. ๐Ÿ—‘๏ธ Logs of the system:.log and.trace files in /data/log can occupy up 1 GB per month Solution: Turn off auto updates in Settings โ†’ The phone. โ†’ Updating the system โ†’ Three points. โ†’ Settings and regularly clean the messenger cache.
How to remove pre-installed games (Mi Games, Arena of Valor)
Without root rights, you can't delete them completely, but you can: Disable: Settings โ†’ Applications โ†’ Application Management โ†’ [game name] โ†’ Disable. Hide: Use the Nova Launcher launcher and hide the icon in the app menu. Delete updates: In the same app menu, click Remove updates - this will bring the game back to the factory version (takes less space). With rights, you can delete completely via Titanium Backup or ADB: adb shell pm uninstall -k --user 0 com.xia.gamecenter.sdk.service.
What if the Explorer does not show hidden files?
Turn on hidden file display: Open Mi File Manager. Click on three dots in the upper right corner โ†’ Settings. Activate the option to Show hidden files. If you don't have an option, use a third-party explorer like Solid Explorer or FX File Explorer. These show hidden files by default.
Can applications be moved to SD-map to free up internal memory?
On the Redmi Note. 4X s MIUI 9 and above transfer of applications to SD-The card is partially supported, but with limitations: โœ… It only works for a part of the application (not system). โŒ Not all data is transferred, only a portion of files (OBB And the cache stays in the internal memory). โš ๏ธ SD-The card must be formatted as an internal storage (in Settings) โ†’ Memory. โ†’ SD-map โ†’ Set it up as internal, but it will lead to encryption and inability to use it on other devices. Link2SD (requires root) to link application folders to SD-map.