How to Clean a Recycle Bin in a Gallery on Xiaomi: 5 Ways + File Recovery

The shopping cart in Xiaomi’s standard gallery is a temporary storage for deleted photos and videos that is automatically released after 30 days. However, many users are faced with a situation where the phone’s memory is full and the basket takes up gigabytes of data. In this article, we will discuss how to forcefully clear the cart on Redmi, POCO and Mi smartphones (including models on MIUI 14), and what to do if files are missing from the cart ahead of time or need to be restored.

It's important to understand that simply deleting files from the gallery doesn't free up space on the device, they move to the trash can and continue to take up memory, and the system doesn't always show the actual amount of junk in the storage. We tested all the ways on the Redmi Note 12 Pro+, POCO X5 Pro and Mi 11 Ultra to provide up-to-date instructions for different versions of the firmware.

By default, the MIUI gallery cart should self-clean after 30 days, but in practice users face several problems:

  • πŸ“… Resetting timer: when manually viewing files in the basket, their storage period is reset (for example, if you opened a photo on the 29th day, the countdown will begin again).
  • πŸ”„ Sync errors: If the gallery is tied to Mi Cloud, the cart can be duplicated in the cloud and on the device, which blocks automatic cleaning.
  • πŸ“± Optimization MIUI: on some of the scalings (especially MIUI 12.5 and below) the auto-clean function is unstable due to background activity limitations.
  • πŸ› οΈ Manual settings: in some regional versions MIUI Automatic cleaning option disabled by default.

Also, the recycle bin can freeze after a system update or reset, and in such cases only a forced cleanup through the gallery menu or file manager helps, if you notice that the recycle bin takes up more than 1-2 GB and files in it are older than a month, this is a direct signal to action.

πŸ“Š How often do you clean the gallery basket?
Once a week.
Once a month
Only when memory ends
Never clean.
I don't know where she is.

The easiest method is to use the built-in gallery tools, which works on all Xiaomi smartphones with MIUI 11 and later, including HyperOS (for models of 2026).

  1. Open the Gallery app (flower icon).
  2. Slip on three horizontal lines in the lower right corner (menu).
  3. Select the Recycle Bin (or Recently Deleted in Older Versions).
  4. In the upper right corner, press Control (or three dots β†’ Clear the basket).
  5. Confirm the action by choosing Delete Everything.

If there is no button to clean the cart, try:

  • πŸ” Keep your finger on any file in the basket β†’ choose to delete everything.
  • πŸ“‚ Go to the Albums β†’ Basket β†’ swipe left on file and press Delete Forever.

Check if there are any important files in the cart|Connect your phone to charging (for large volumes)|Close background annexes|Make a backup copy (optional)-->

Important: On some devices (e.g. Redmi 10C), the recycle bin may appear empty after cleaning, but the files will remain in memory.

Method 2: Remove via Mi Cloud (if the cart is synchronized)

If your gallery is tied to Mi Cloud, the files in the Recycle Bin can be duplicated in the cloud and on your device to clear them completely:

  1. Open the Settings. β†’ Mi Account.
  2. Go to Mi Cloud. β†’ gallery.
  3. Slip on the basket in the bottom menu.
  4. Select Control. β†’ Clean the basket.
  5. Confirm the deletion on the device and in the cloud (if required).

⚠️ Attention: Deletion from Mi Cloud is irreversible! Files can't be recovered even after 30 days.If you use the cloud for backup, pre-save important data to your PC or external drive.

Action.The resultImplementation time
Cleaning through the galleryFiles are deleted only from the device1-2 minutes
Cleaning through Mi CloudFiles are deleted from the device and from the cloud2-5 minutes (depending on internet speed)
Manual Deletion through File ManagerComplete deletion, including hidden files3-10 minutes
Reset gallery settingsRestore the cart, but not clean5 minutes.

Method 3: Manually clean through file manager (for power users)

If standard methods fail, you can manually delete the cart files through the system folders, which requires caution, as incorrect actions can damage the data.

  1. Open the Files app (or any file manager, such as Solid Explorer).
  2. Go to the Inner Memory β†’ MIUI β†’ Gallery β†’ Cloud (or trash in older versions).
  3. Select all files (hold your finger on one file β†’ select all).
  4. Click Delete and confirm the action.

Critical information: The MIUI/Gallery/cloud folder can be hidden. To see it, turn on the hidden files in the file manager settings (usually in the menu β†’ β€œShow hidden files”).

If there is no trash or cloud folder, try the following:

Internal memory/DCIM/.thumbnails/trash

πŸ’‘

Before manually deleting the files of the cart, check if the memory is occupied by the gallery cache. To do this, go to Settings β†’ Apps β†’ Gallery β†’ Memory and clear the cache.

Method 4: Cleaning the Recycle Bin via ADB (for advanced users)

If the cart is β€œhung” and is not cleaned by any of the above methods, you can use Android Debug Bridge (ADB), which is suitable for devices with unlocked debugging over USB.

Instructions:

  1. Turn on Developer Mode (go to Settings β†’ About Phone and tap on MIUI version 7 times).
  2. Return to Settings β†’ Additional β†’ For developers and enable USB debugging.
  3. Connect your phone to your PC, install ADB Tools, and open the command line.
  4. Enter the command to check the connection: adb devices (should display your device).
  5. Execute the command to clean the cart: adb shell content query --uri content://media/external/images/media --where "is_trashed=1" --delete

⚠️ Attention: Misuse of the right ADB It can cause data loss or system failure. If you're not sure what you're doing, skip this method.

What if the ADB can’t see the device?
Make sure that Xiaomi drivers are installed on your PC (download them from the official website). USB-cable (preferably original) In the developer settings, enable the option "Debug by" USB (security parameters) and confirm the PC permission when you connect.

How to recover files if the cart is cleared ahead of time

If files are missing from the bin before 30 days have elapsed, you can try to recover them, and success depends on whether the data has been overwritten by new files.

Recovery methods:

  • πŸ”„ Recovery software: DiskDigger, Recuva (requires root rights for deep scanning).
  • ☁️ Cloud Backups: Check Google Photos or Mi Cloud – Files may have been synced automatically.
  • πŸ’Ύ Local backups: if you used Mi PC Suite or Xiaomi Backup, try recovering data from there.
  • πŸ“§ Emails and instant messengers: sometimes photos are sent to Telegram, WhatsApp or email – check chat history.

To recover via DiskDigger:

  1. Install the app from Google Play.
  2. Select Full Scan (requires root).
  3. Mark the file types: JPG, PNG, MP4.
  4. Wait until the scan is completed and save the files found.

The chances of recovery are higher if:

  • πŸ“‰ The phone memory was not filled after being deleted.
  • πŸ”‹ The phone has not restarted (this can overwrite data).
  • ⏱️ Less than 7 days have passed since the removal.

πŸ’‘

If files were deleted from the shopping cart less than a day ago, do not write new data to your phone (do not take photos, do not install apps) – this will increase the chances of recovery.

Some users prefer to completely disable the cart so that files are deleted immediately, but this risks losing important data.

  1. Open the Gallery β†’ Settings (three dots in the upper right corner).
  2. Go to the basket.
  3. Turn off the option to Save Deleted Files (or Enable Recycle Bin in older versions).

⚠️ Warning: Once you turn off the Recycle Bin, all deleted files will be permanently erased. If you accidentally delete a photo, it will be extremely difficult to restore it.

An alternative is to reduce the storage period:

  • In the same settings of the basket, select the Shelf Term.
  • Set the minimum value - 1 day or 7 days.

This will reduce the memory load, but will preserve the chance of recovering files in case of an error.

Can I recover files after cleaning the Recycle Bin through Mi Cloud?
No. Deletion from Mi Cloud is an irreversible process. Files are not saved in the cloud cart and cannot be restored through standard means. The only chance is if the files were uploaded to another cloud (Google Photos, Yandex Drive) or sent to messengers.
Why is the cart 5 GB and there are no files in it?
This is a common MIUI error when the system is not correctly displaying occupied space. Try: Clear the gallery cache (Settings β†’ Applications β†’ Gallery β†’ Memory β†’ Clear cache). Reboot the phone. Use Method 3 (manual cleaning through the file manager). If the problem persists, check the memory through Settings β†’ Memory β†’ Memory Analysis – it may be that other files (e.g., Google Play Services cache) occupy the volume.
How to clean your shopping cart on Xiaomi without access to your phone (if the screen is broken)
If the screen is not responsive to touch, but the phone is turning on, connect it to the PC and use: Mi PC Suite: the program allows you to manage files through the computer. ADB: if USB debugging was enabled earlier, follow the commands from Method 4. Restore mode: pinch Power + Volume up, select Wipe cache partition (will not reset data, but can help with the drip basket). If the screen is completely black, you will need repair or connection to the Xiaomi service center.
Why is the memory not released after cleaning the basket?
This can happen for several reasons: πŸ“ Recycle bin files physically remain in memory (use Method 3 for manual deletion). πŸ”„ The system did not have time to update the data about the free space (reboot the phone). πŸ—‘οΈ Memory is occupied by the cache of other applications (clean through Settings) β†’ Memory). πŸ› οΈ File system error (check memory through file system) SD Maid or similar utilities).
Is there a difference in cleaning the cart on Redmi and POCO?
No, since both brands run MIUI/HyperOS. Except for the custom firmware POCO models (e.g. POCO Launcher), where the path to the basket may be different. In this case, use Method 3 (manual clean through the file manager).