The shopping cart on Xiaomi smartphones is a temporary storage for deleted files that many users forget to check, and over time it is filled with gigabytes of unnecessary data: photos, videos, documents and even a cache of applications. If you notice that the phoneβs memory suddenly runs out and the gallery or file manager appears βghostsβ of old files, the problem is precisely in the crowded basket.
In this article, we will discuss all the ways to clean the cart on Xiaomi, including hidden MIUI functions, recovery of accidentally deleted data and setting up automatic cleaning. The instructions are relevant for models from Redmi Note 10 to Xiaomi 14 Ultra and the firmware versions from MIUI 12 to MIUI 15. Particular attention will be paid to the hidden basket in the Files application, which is known to less than 20% of users.
Where is the Xiaomi cart and why is it filled
Unlike the iPhone or Samsung, where the basket is usually one, Xiaomi can have three:
- π Gallery basket - stores deleted photos and videos (path: Gallery) β Albums. β Basket).
- π File Manager Recycle Bin β Collects all deleted documents, APK, archives (path: Files) β Categories β Basket).
- π Hidden basket MIUI β System Storage for Temporary Files (Available through Settings) β Memory. β Cleanup).
By default, files are stored in the recycle bin for 30 days, but this period can be changed. The main problem is that many users do not know that MIUI automatically transfers to the recycle bin not only explicit deletes, but also:
- ποΈ Files deleted through "Memory Optimization" (Settings) β Battery and productivity).
- π± App cache after resetting settings (Settings) β Annexes β Clear the cache).
- π Antivirus scan results (Security) β Scanning).
β οΈ Note: If you use Google Photos or Mi Cloud, the files deleted through them do not enter the local shopping cart Xiaomi.
Method 1: Cleaning the gallery basket (photos and videos)
This is the most obvious, but not always effective, method, and many users limit themselves to it, unaware that 80% of the "junk" is hidden in other sections.
Instructions:
- Open the Gallery app (flower icon).
- Slip on three horizontal lines (β°) lower-right β select the albums.
- Scroll down to the basket section (urn icon) ποΈ).
- Click Control (top right) β highlight unnecessary files or tap Select All.
- Click Remove (below) and confirm the action.
If the Remove button is inactive:
- π Check if the protection mode is enabled (in the gallery settings).
- πΆ Make sure your phone is connected to the internet β some versions MIUI Requires verification of the Mi Account.
- π Restart your phone and try again.
βοΈ Preparation for cleaning the gallery basket
Method 2: Cleaning the Recycle Bin in the File Manager (Hidden Files)
The MIUI file manager hides the basket deeper than the gallery.
- π Deleted documents (.pdf,.docx,.xlsx).
- π¦ Archives (.zip,.rar) and APK-file.
- π΅ Audio files and recordings from the recorder.
How to clean:
- Open the Files app (folder icon).
- Go to the Category tab (bottom).
- Scroll to the Recycle Bin section (may be called Recently Deleted).
- Tap Edit β Select files β Delete forever.
If there is no basket section:
- π Enter the file manager search box for recycle or.trash.
- π Go to the Inner Memory β.recycle (hidden folder).
- π§ Enable the display of hidden files: Files β β° β Settings β Show hidden files.
How to recover files from the file manager basket?
Method 3: Clean the system basket through MIUI settings
MIUI has a hidden system basket that doesn't show up in the gallery or file manager.
- π§Ή Temporary application files (cache, logs).
- π± Data after resetting settings (Settings) β The phone. β Resetting settings).
- π Files deleted through memory optimization.
How to clean:
- Go to Settings. β Memory.
- Slip the cleanup (or clear the place).
- Wait for analysis β select the category of Recycle Bin or Recently Deleted.
- Press Clean and confirm.
If the item is not on the list:
- π Update. MIUI Up to the latest version (in old firmware, the function is hidden).
- π± Use Developer Mode: Go to Settings β The phone. β Version. MIUI (Tap 7 times, then in Settings β Additionally. β For developers β Turn on basket cleaning.
β οΈ Attention: Cleaning the system basket through settings deletes files irrevocably, unlike a gallery where there is a possibility of recovery.
Method 4: Automatically clean the basket (MIUI setting)
To avoid manually cleaning the cart, set up automatic removal:
| Parameter | Where to set up | Recommended value |
|---|---|---|
| Storage period in the basket | Settings β Memory β Cart β Storage period | 7-15 days (default 30) |
| Autocleaning with a lack of memory | Settings β Battery and Performance β Memory Optimization | Turn on |
| Exceptions for the basket | gallery β β° β Settings β Basket β Exceptions | Add important folders (e.g. Screenshots) |
| Notifications for completion | Settings β Notifications β System notifications β Memory | Insert (threshold: 80% of the filling) |
To set up automatic cleaning:
- Open the Settings β Memory β Recycle Bin.
- Activate the Automatic Cleaning Switch.
- Set a fill threshold (e.g., 5GB).
- Choose the frequency (weekly/monthly).
π‘
If you take pictures often, set the gallery settings (β° β Settings β Recycle Bin) exception for the Camera folder, so photos won't automatically be deleted from the Recycle Bin.
Method 5: Cleaning the Recycle Bin via PC (for power users)
If the shopping cart on your phone doesnβt clear or gives you errors, connect Xiaomi to your computer and use it. ADB-commands or file manager.
Instructions for Windows:
- Connect your phone to your PC via USB (enable USB debugging in Settings β About Phone β MIUI β 7 taps β For developers).
- Open the Command Prompt (Win + R β cmd).
- Enter the commands: adb shell su rm -rf /storage/emulated/0/.recycle/* rm -rf /storage/emulated/0/Android/data/com.miui.gallery/cache/trash/*
- Reboot the phone.
Alternative method (without ADB):
- π₯οΈ Use Total Commander or ES Explorer on PC to access hidden folders.
- π Go on the path of internal memory β.recycle or.trash.
- ποΈ Delete all files manually.
β οΈ Attention: Use ADB Requires root rights for some Xiaomi models (e.g., for example, POCO F5 or Redmi K60). Without root, the commands may not work. It will also reset some system settings.
What to do if the basket is not cleaned
If after all the manipulations the basket remains filled, check:
| Problem. | Reason. | Decision |
|---|---|---|
| Remove button is inactive | Files protected by MIUI or third-party software | Turn off privacy protection in security settings |
| The basket is empty, but memory is busy. | Hidden system files or cache | Use Settings β Memory β Deep Cleaning |
| The "Impossible to delete" error | Damaged files or file system error | Restart your phone in Safe Mode (click the power button β βReboot in Safe Modeβ) |
| The basket is not on the menu | Obsolete version of MIUI or regional firmware | Update the software through Settings β System Update |
If nothing helps:
- π Reset Gallery settings: Settings β Annexes β gallery β Warehouse β Clear the data.
- π± Install an alternative file manager (like Solid Explorer) and clear the Recycle Bin through it.
- π§ Perform reset to factory settings (pre-save data!).
π‘
If the recycle bin is not cleaned through standard methods, the cause is often a corrupted file system, in which case only resetting settings or flashing through the Mi Flash Tool will help.