Xiaomi Redmi 4 is still a popular device for its reliability and functionality, but over time owners face a problem: memory is filled with garbage, and standard cleaning through the Recycle Bin does not always work correctly. Unlike modern models, where the deletion function is integrated into the MIUI, on Redmi 4 with firmware up to MIUI 10, this process may require additional actions.
In this article, we will discuss all the current ways to clean the cart, from embedded tools to hidden commands and third-party utilities. Particular attention will be paid to the nuances associated with the outdated architecture of storing files in MIUI for Redmi 4, where the cart may or may not display deleted items. If you notice that after cleaning the memory is not freed, or files continue to occupy space, here you will find a solution.
Why is the Redmi 4 cart not cleaned in the standard way?
The problem with the shopping cart on Xiaomi Redmi 4 is due to the features of the F2FS file system, which the company used in budget models of the period. Unlike modern devices, where the basket is implemented as a separate partition (/.trash), on Redmi 4 it is often a virtual folder, data from which is not always correctly deleted when you click on โCleanโ.
The main causes of failures:
- ๐ File system errors after incorrect extraction SD-card or recording failure.
- ๐ฑ An outdated version MIUI (below MIUI 10.2), where the basket mechanism worked through temporary folders.
- ๐ซ Access rights conflict where the system cannot delete files due to SELinux restrictions.
- ๐๏ธ ยซGarbage files from third-party applications (such as galleries or file managers) that create their own shopping carts.
If you click Clear the Recycle Bin in Files or Gallery, the memory is not freed, most likely, the files physically remain in hidden folders.
Method 1: Cleaning through a standard MIUI file manager
The most obvious method is to use the built-in Files (or File Manager).However, the interface on Redmi 4 may be different from the newer versions of MIUI.
- Open the Files app** (a blue background folder icon).
- In the top menu, tap three points (โฎ) and pick the basket.
- Click Manage (or Edit in older versions).
- Check all files or tap Select everything.
- Click Remove Forever (or Clean the Cart)
If the Clean the basket button is inactive or nothing happens after pressing:
- ๐ Reboot your smartphone and try again.
- ๐ Check if files are hidden in the Recycle Bin (enable the display of hidden folders in the file manager settings).
- ๐ ๏ธ Update the Files app** via Play Market (if available).
โ๏ธ Preparation for cleaning the basket
On Redmi 4 with firmware below MIUI 9, the basket may not be on the menu.
Settings โ Memory โ Cleaning โ CartMethod 2: Manually delete Recycle Bin files through hidden folders
If the standard cleanup didn't work, the bin files could have been left in hidden system folders, which can be manually deleted, but you need root rights access or ADB.
- Connect Redmi 4 to your PC via USB (in File Transfer mode).
- On your computer, open this computer and go to the folder of the smartphone.
- Enable the display of hidden files: ๐ช Windows: View โ Hidden elements. ๐ MacOS: Command + Shift +.
/storage/emulated/0/.trash
/storage/emulated/0/Android/data/com.android.providers.media/.trash
/storage/emulated/0/MIUI/Backup/AllBackup/.trashIf there are no folders, try searching by keywords:
- ๐.trash is the standard basket MIUI.
- ๐ Recycle or RecycleBin โ Recycles from third-party apps.
- ๐ Temp โ Temporary files that can take up space.
What to do if the.trash folders are not deleted?
Attention! Deleting files from Android/data folders can cause app crashes. Don't delete anything except folders called.trash or recycle.
โ ๏ธ Note: On some Redmi 4 firmware, the.trash folder can be protected from changes. If it reappears after deletion, it is a sign of a system failure).
Method 3: Cleaning the Recycle Bin through Application Managers (without root)
If the built-in MIUI tools don't work, you can use third-party file managers, which often find junk files better and offer advanced cleaning features.
| Annex | Advantages | Deficiencies | Reference |
|---|---|---|---|
| Files by Google | Automatic garbage scanning, simple interface | Does not show hidden folders without root | Play Market |
| Solid Explorer | Support for root, cloud storage, dual-panel mode | Paid version for advanced functions | Play Market |
| FX File Explorer | Built-in cache cleaner, working with ZIP | Advertising in the free version | Play Market |
| Amaze File Manager | Open source, support for SMB | Less intuitive interface | Play Market |
Instructions for Files by Google:
- Install and open the application.
- Go to the Cleanup tab (basket icon).
- Select Files in the Recycle Bin or Unnecessary Files.
- Then, turn to [X] and confirm the action.
If the app doesnโt find the cart, try:
- ๐ Manually cross the path /storage/emulated/0 Search for folders with names like trash, recycle.
- ๐ In the application settings enable Show hidden files.
- ๐ Restart the application after all permissions have been granted.
๐ก
If the memory is not free after cleaning through a third-party manager, check the Download folder โ often temporary files that are not deleted automatically get there.
Method 4: Cleaning the Recycle Bin via ADB (for advanced users)
If previous methods have failed, you can use Android Debug Bridge (ADB), a debugging tool that allows you to execute commands directly on the system.
- ๐ง You have experience with the command line.
- ๐ฑ On the smartphone included debugging on USB.
- ๐ป There is access to a computer with installed Xiaomi drivers.
Step-by-step:
- Download and install ADB Tools on PC.
- On Redmi 4, enable USB debugging: Settings โ About Phone โ MIUI Version (tap 7 times) Settings โ Additional โ For Developers โ Debugging by USB
- Connect your smartphone to your PC and confirm your trust in your computer.
- Open the command prompt (Windows) or terminal (Mac/Linux) in the folder with ADB.
- Follow the commands in order: adb shell su rm -rf /storage/emulated/0/.trash/* rm -rf /storage/emulated/0/Android/data/com.android.providers.media/.trash/* exit exit exit exit
If a Permission Denied error occurs after execution of commands, it means:
- ๐ You donโt have root rights (solution โ method 5).
- ๐ง File system locked (try restarting your phone and repeating).
โ ๏ธ Attention: Teams ADB Do not modify or delete files outside the.trash folder unless you are sure of their purpose.
๐ก
ADB is the most effective way to remove files that are not deleted from the Recycle Bin, but it requires caution. If you are not sure about the commands, use more secure methods (method 1 or 3).
Method 5: Resetting settings (last option)
If the bin is not cleaned in any way, and the hidden files continue to take up space, the radical solution is to reset to factory settings, which will delete all data, including junk files, but also delete:
- ๐ธ Photos and videos (if not saved on the SD-card).
- ๐ฑ Installed applications and their data.
- ๐ Contacts, SMS, Call logs (unless synced with Google or Mi Account).
How to perform the reset:
- Back up important data (via Settings โ Additional โ Backup).
- Go to Settings โ Additional โ Recovery and Reset.
- Select Settings Reset.
- Confirm the action (a password may be required).
- Wait until it is completed (it will take 5-10 minutes).
After discharge:
- ๐ The smartphone will reboot to its original state.
- ๐ฅ Restore data from backup (if you did).
- ๐ก๏ธ Install applications again (it is recommended to start with the file manager for memory control).
โ ๏ธ Attention: Redmi 4 with firmware below MIUI 9 reset may result in the bootloader being blocked if the unlock manipulations have been performed before.
How to prevent the cart from filling in the future?
To avoid repeated basket problems on Redmi 4, follow the simple rules:
- ๐๏ธ Turn off the cart for individual applications: In the Gallery: Settings โ Basket โ In Files: Settings โ Basket โ Autocleaning (30 days).
- ๐ Use cloud storage (Google Photos, Mi Cloud) to automatically sync and clean local files.
- ๐ Regularly check your memory through Settings โ Memory. โ Cleanup.
- ๐ซ Avoid junk apps that create their own shopping carts (such as some launchers or file managers).
It is also useful to set up automatic cleaning:
Settings โ Memory โ Autocleaning โ EnableThis will allow the system to delete unnecessary files, including the contents of the shopping cart, when the memory is filled.
๐ก
If you often work with large files (video, archives), consider using the file. SD-map as the primary storage. Go to Settings for this. โ Memory. โ Default storage and select SD-map.