The Xiaomi smartphone basket is a temporary storage for deleted files that many users forget to check, and over time, it gets stuffed with unnecessary photos, videos and documents, taking up precious space in the deviceβs memory. If you notice that your Redmi, POCO or Mi are running out of space, the first thing you should look at is here.
In this article, we will break down all the ways to clean the cart β from standard methods through the Gallery and File Manager to hidden functions. MIUI, You will also learn how to recover accidentally deleted files from the recycle bin (it is possible within 30 days!) and why some files are not deleted even after cleaning. MIUI 14 and HyperOS.
Where is the basket on Xiaomi and how to open it
Unlike computers where the basket is visible on the desktop, on Xiaomi smartphones, its location depends on the type of files.
- π· Gallery - Removed photos and videos are stored here (up to 30 days). β tap three points in the upper right corner β pick the basket.
- π File Manager β Universal storage for all types of files (documents, APK, The path: Files β Categories β Recycled cart (or recently deleted).
- π΅ Music β If you delete audio files through the standard Mi Music app, they will end up in a separate bin inside it.
Important: the Recycle Bin in MIUI is not a single storage, for example, files deleted through Google Photos will be in the Recycle Bin of this application, not in the system one, and some third-party file managers (such as ES Explorer) will create their own Recycle Bin.
If you don't find the cart in the places you're looking at, check the display settings. In some versions of MIUI (like the POCO F5 or Redmi Note 12), the cart is hidden by default.
- Open Settings β Additional β File Manager.
- Activate the switch Show the basket.
- Reboot your smartphone if the changes donβt apply.
Method 1: Cleaning the basket through the Gallery (photos and videos)
The easiest method is to remove unnecessary media from the Gallery app, which is suitable for all Xiaomi models, including the Redmi 10, POCO X5 Pro and Mi 11.
βοΈ Step-by-step cleaning of the basket in the Gallery
If the Clean Recycle Bin button is inactive, it means that there are no files in it or they have already been deleted automatically (the system cleans the Recycle Bin every 30 days).
- Press your finger on any file in the Recycle Bin β select Delete Forever.
- For mass removal, tap on the basket icon in the upper right corner β Clean everything.
β οΈ Note: files deleted from the Gallery Recycle Bin will not be recoverable. If you accidentally erase an important photo, try using programs like DiskDigger or Recuva (root rights required).
Method 2: Cleaning through File Manager (all file types)
The File Manager system allows you to delete not only media, but also documents, APKs, archives and other data. The interface may vary depending on the version of MIUI, but the general logic is the same:
- Open the Files app (the folder icon on the desktop).
- Go to the Category β Cart (or Recently Deleted) tab.
- Slip on three points at the top β Control β Clean the basket.
If the cart is empty but the phoneβs memory is still busy, check the hidden folders:
/storage/emulated/0/.trash
/storage/emulated/0/Android/data/com.miui.gallery/cache/trashThese directories contain temporary bin files to clear them:
- Connect your smartphone to your PC via USB (in File Transfer mode).
- Enable the display of hidden folders in Windows Explorer (View β Hidden Elements).
- Remove the contents of the.trash folders manually.
π‘
If the.trash folder doesnβt open, try using a root-access file manager like Root Explorer or FX File Manager.
Method 3: Automatically clean the basket on schedule
MIUI allows you to set up automatic deletion of files from the recycle bin after a certain period of time, which is convenient if you don't want to manually monitor the release of memory.
- Open the Settings β Storage.
- Put it on the cleanup. β Cleaning settings.
- Turn on the Auto Clean Cart switch.
- Choose a period of 7 days, 15 days or 30 days.
On some models (e.g. Redmi Note 11 or POCO M5), this option is hidden in the menu Additional β File Manager β Autoclean. If you donβt find it, upgrade to the latest version of MIUI.
| Autocleaning period | Advantages | Deficiencies |
|---|---|---|
| 7 days | Frees up memory as much as possible | High risk of losing the right files |
| 15 days | Balance between free space and security | Some files may be superfluous. |
| 30 days | Minimum risk of accidental removal | It takes up more memory. |
β οΈ Note: If you use Mi Cloud cloud storage, the files in the Recycle Bin can sync with Xiaomi servers, which means that even after cleaning the Recycle Bin on your phone, they will remain in the cloud for another 30 days. β Basket β Clear it all up.
Method 4: Cleaning the Recycle Bin via ADB (for power users)
If standard methods donβt work (e.g., the cart wonβt open or files arenβt deleted), you can use ADB (Android Debug Bridge), which requires connecting your smartphone to your computer and basic command line knowledge.
Before we start:
- π§ Install. ADB and Fastboot Tools on PC.
- π± Turn on Debugging. USB on a smartphone: Settings β The phone. β Version. MIUI (Tap 7 times to activate the developer mode) β Go back to Settings β Additionally. β For developers β Debugging by USB.
- π Connect your phone to your PC through USB-cable (select File Transfer Mode).
Now run the following commands in the terminal (or Command Prompt):
adb devices
adb shell
su
rm -rf /storage/emulated/0/.trash/*
rm -rf /storage/emulated/0/Android/data/com.miui.gallery/cache/trash/*If the su command is not working, then your device has no root rights, in which case use an alternative method:
adb shell
pm clear com.miui.galleryThis command will reset the Gallery settings, including the Recycle Bin, but will not affect the files themselves.
What if the ADB canβt see the device?
Method 5: Recover files from the Recycle Bin (if deleted accidentally)
If you have deleted important files from the recycle bin, you can try to restore them within 30 days (if they have not been permanently deleted by the system).
- Open the Gallery β Recycle Bin (or Files β Recycle Bin).
- Select the desired files with a long tap.
- Click Restore (Icon with arrow down).
If files have already been removed from the shopping cart, try specialized programs:
- π± DiskDigger (for Android, works without root, but with limitations).
- π» Recuva or EaseUS Data Recovery (requires a phone connection to a PC in Mass Storage mode).
- π Dr.Fone (a paid solution with a high recovery rate).
β οΈ Attention: the more you use your smartphone after deleting files, the lower your chances of recovering them, because new data overwrites old memory sectors. If files are critical, disconnect your phone from the Internet right away and don't save anything new.
π‘
The files in Xiaomi's shopping cart are stored encrypted, and even if you connect your phone to your PC, you can't read them without special tools, so it's better to recover data through your smartphone or with professional software.
Why the cart is not cleaned and how to fix it
Sometimes users are faced with the fact that the shopping cart on Xiaomi is not cleaned or files remain in it even after clicking Delete.
| Problem. | Reason. | Decision |
|---|---|---|
| The button Clean the basket is inactive | The basket is empty or the files are protected | Check folder access rights or restart your phone |
| Files are returned after deletion | Sync with Mi Cloud or Google Photos | Turn off autosynchronization in cloud settings |
| Error failed to be deleted | The file is used by the system or corrupted | Use an ADB or file manager with root rights |
| The basket won't open. | Misfunction of MIUI or Gallery | Clear the cache of the Gallery app in the settings |
If none of the methods worked, reset the Gallery settings:
- Go to Settings β Applications β Application Management.
- Find the gallery β Warehouse β Clear the data.
- Confirm action. Attention: this will delete all the settings of the application, but it will not affect the files themselves.
On HyperOS models (such as Xiaomi 14 or Redmi K70), the cart may work differently. If you upgrade to a new firmware and run into problems, try rolling back on MIUI 14 or wait for a patch from Xiaomi.