The Xiaomi smartphone basket is a temporary storage for deleted files that many users forget to check, and over time, it fills with gigabytes of unnecessary data: photos, videos, documents and app cache, and if you notice that the phoneβs memory suddenly runs out and the gallery or file manager has βdeletedβ files, the problem is that the overflowing shopping cart is the problem.
In this article, we will analyze all the ways to clean the basket on Xiaomi, Redmi and other devices. POCO β from standard methods through MIUI You will learn how to delete files permanently without recovery, why the Recycle Bin can not be cleaned automatically, and what to do if the system gives an error when you try to delete. MIUI 14 and HyperOS.
What is a shopping cart on Xiaomi and where it is stored
The Trash or Recycle Bin in Xiaomi is a system folder that is automatically created when a file is first deleted. Unlike Windows, where the basket is seen as a separate item on the desktop, on Xiaomi smartphones it is hidden in the depths of the file system.
- π Location: Recycle bin files are stored in a hidden folder /storage/emulated/0/.trash (for internal memory; or /storage/XXXX-XXXX/.trash (for SD-map).
- β³ Storage period: by default, files are stored for 30 days, after which they are deleted automatically (setting is available in Settings). β Warehouse).
- π Recovery: Any files can be returned to the original folder during the retention period.
- β οΈ Restriction: Recycle bin takes up to 10% of the total memory of the device. If you exceed the limit, old files are deleted automatically.
It is important to understand that the basket does not work for all types of files, for example, data from messengers (WhatsApp, Telegram) or app cache does not get there β they need to be cleaned separately, and the basket does not work when deleting files through ADB or third-party file managers (for example, Solid Explorer).
Method 1: Cleaning the Recycle Bin through a standard file manager
The easiest method is to use the built-in MIUI file manager, which is available on all Xiaomi devices and does not require any additional applications to be installed.
- Open the Files app (the folder icon on the desktop).
- In the lower menu, tap on the basket section (dumpster icon).
- Click on the three dots in the top right corner and select Clean the basket.
- Confirm the action in the pop-up window.
If the Clean Cart button is inactive or absent, check:
- π Are there any blocked files in the basket (for example, screenshots marked "Confidential").
- π΅ Is the power saving mode turned on β it can block background processes.
- π Has the firmware been updated recently - sometimes after the update you need to restart.
βοΈ Preparation for cleaning the basket
If the Recycle Bin doesnβt clear even after a reboot, try forcefully stopping the file manager:
- Go to Settings β Applications β Application Management.
- Find the Files and select Stop.
- Start the manager again and repeat the cleaning.
Method 2: Delete files from the Recycle Bin through the Gallery
Many users don't know that the Xiaomi Gallery has its own shopping cart, separate from the system one, and only media files (photos, videos, GIFs) deleted through the Gallery app get in there to clear it:
- Open the Gallery and tap on three horizontal lines in the lower left corner.
- Select the Recycle Bin section (Dumpster Bin icon).
- Click Control β highlight all files (check in the upper right corner) β Delete.
- Confirm the action by choosing Delete Forever.
Features of this method:
- πΈ Gallery files are not duplicated in the system basket β they are stored separately.
π‘
To speed up the cleanup, sort files by date (Sort β Date) before deleting and delete the oldest ones first.
Method 3: Manual cleaning through a hidden.trash folder
If standard methods donβt work, you can manually delete the recycle bin files through any file manager with access to system folders (e.g. FX File Explorer or Root Explorer), a method that is suitable for advanced users.
Instructions:
- Install a file manager with support for displaying hidden folders (in the settings, turn on the option to Show hidden files).
- Cross the path: /storage/emulated/0/.trash For SD-map the way: /storage/XXXX-XXXX/.trash (where XXXX-XXXX β memory).
- Select all files and folders inside.trash and delete them.
- Clean the file manager basket itself (if there is such a feature).
Warnings:
β οΈ Note: Deleting files from the.trash folder manually bypasses the recovery mechanism, and it will not be possible to return data after that, even with programs like DiskDigger.
β οΈ Note: Do not delete the.trash folder itself β the system will create it again, but this can lead to crashes in the basket.
| Basket folder | Location. | Max size. | File types |
|---|---|---|---|
| .trash | /storage/emulated/0/ | 10% of memory | All (except the system) |
| .trash (SD) | /storage/XXXX-XXXX/ | 5% card | All except APK |
| MiuiGalleryTrash | /storage/emulated/0/Pictures/ | 2GB | Only the media. |
| Download/.trash | /storage/emulated/0/Download/ | 500MB | Downloads. |
Method 4: Cleaning the basket through ADB (for advanced)
If the cart is not cleaned by standard methods, you can use the ADB tool (Android Debug Bridge), which requires connecting the phone to the computer and enabling debugging mode.
Step-by-step:
- Turn on Developer Mode: Settings β About Phone β MIUI Version (Tap 7 times)
- Activate USB Debugging in Settings β Additional β For developers.
- Connect your phone to your PC and open the Command Prompt (Windows) or Terminal (macOS/Linux).
- Enter the commands in turn: adb shell su rm -rf /storage/emulated/0/.trash/* exit exit
If the su command is not working, then the device has no root rights, in which case use an alternative method:
adb shell
rm -rf /storage/emulated/0/.trash/*What if the ADB canβt see the device?
After the commands are executed:
- π Reboot the phone.
- π Check if the space is available in the settings β Warehouse.
- β οΈ If you have files, repeat the root rights procedure.
Method 5: Automatically clean the basket on schedule
To avoid manually cleaning the bin, you can set up automatic deletion of files after a certain period of time.
- Open the Settings β Storage.
- Slip on the Recycle Bin (or Cleanup in newer versions of MIUI).
- Select Auto Cleanup and set a period: ποΈ 1 day to maximize memory savings. ποΈ 7 days - the best option. ποΈ 30 days - default. β Disconnect β if you do not want automatic cleaning.
Notify before cleaning
You can also turn on automatic cleaning when there is a lack of memory:
- Go to Settings β Battery and Performance β Memory Cleanup.
- Turn on the Auto Clean option.
- Set a free space threshold (e.g. 1 GB).
π‘
Autocleaning the cart doesn't delete files forever -- they're still stored in the.trash folder until the deadline. Use manual methods to delete them completely.
What to do if the Xiaomi cart is not cleaned
Sometimes users find that the cart is not cleaned in any way, and consider the main reasons and solutions:
| Problem. | Reason. | Decision |
|---|---|---|
| The "Clean" button is inactive. | Files blocked by MIUI | Remove the lock in Settings β Privacy β File Lock |
| "Failure to delete" error | Damage to the file system | Run the check through Settings β Storage β Check and fix |
| The basket is empty, but the space is not vacated. | Cash baskets not dropped | Clear the application's cache Files in settings |
| The.trash folder is not visible | Hidden files disabled | Enable the display of hidden folders in the file manager |
If none of the methods worked, reset the file manager settings:
- Go to Settings β Applications β Files β Storage.
- Click Clear Data (not cache!).
- Confirm the action β it will reset all the manager settings, but it will not delete your files.
Solution: Check the cart regularly and set up an automatic cleaning for 7-15 days.