How to irrevocably remove the cart on Xiaomi: 5 proven ways

The Recycle Bin on Xiaomi smartphones is a temporary storage for deleted files that takes up space in the device’s memory and can contain sensitive data. Many users of Redmi, POCO or Mi face a problem: even after cleaning the Recycle Bin through the standard menu, files continue to take up space, and some system applications (such as Gallery or Files) restore it automatically.

In this article, we will analyze all possible ways to remove the basket - from basic to advanced, including working with the help of the cart. ADB, change-of-setting MIUI And even manual removal through Root access, and we'll focus on the nuances of different versions of the firmware. MIUI 12 to MIUI 15) and smartphone models.

⚠️ Note: Remove the Recycle Bin through system methods (without Root) does not guarantee full free space.Files may remain in hidden.trash or.recycle folders until the next device reboot.

If you use Xiaomi with custom firmware (like Pixel Experience or LineageOS), standard methods may not work – manual intervention will be required.

1. Standard cleaning of the basket through the Files app

The easiest way is to use the built-in file manager Files from Xiaomi (or File Manager in global firmware), which is suitable for most users and does not require additional knowledge.

Open the Files app, go to the Recycle Bin (the bin icon at the bottom menu) and you'll see all the deleted files grouped by date.

  • πŸ“‚ Click on the three dots in the top right corner and select Clean the basket.
  • ⏳ Confirm the action – the system will show how much space will be vacated.
  • πŸ”„ After cleaning, restart your smartphone to remove temporary files.

⚠️ Attention: B MIUI 14+ The basket can automatically recover the next time you delete the file. To avoid this, turn off the function in the Files application settings: Settings β†’ Basket β†’ Automatic removal (set "ImmediatelyΒ»).

πŸ’‘

If the Recycle Bin doesn’t clear the first time, try to delete files one at a time – sometimes the system β€œforgets” to delete folders with a lot of elements.

The Gallery app on Xiaomi has its own shopping cart, which doesn't always sync with the file. If you deleted photos but they still take up space, follow these steps:

Open the Gallery, swipe to the right or click on the icon ☰ β†’ Recycle bin. Here you'll see all deleted media files:

  • πŸ–ΌοΈ Select all files (long pressing) β†’ check-box).
  • πŸ—‘οΈ Click Remove Forever (or Clean the Cart).
  • πŸ”§ Go to Gallery Settings β†’ Basket β†’ Disable the cart (not available on all firmware).

In some versions of MIUI (e.g. MIUI 13 for POCO F4), the Gallery Recycle Bin is linked to Mi Cloud cloud storage. If files are not deleted, check sync: Settings β†’ Xiaomi Account β†’ Mi Cloud β†’ Gallery β†’ Disable sync.

Why do files come back after cleaning?
MIUI uses a soft delete mechanism, where files are marked as deleted but physically remain on the disk until overwritten, and only free up space after a reboot or when the system needs space for new data.

3. Manual removal of basket folders through the conductor (for experienced)

If standard methods don’t work, you can manually remove hidden bin folders, which requires any file manager with access to system folders (e.g., Solid Explorer or FX File Explorer).

Activate the display of hidden files in the Explorer settings and go on the path: /storage/emulated/0/

Look for the following folders (they may be hidden):

  • .trash is the main MIUI basket.
  • .recycle.recycle_bin β€” alternatives.
  • MIUI/Gallery/trash is the gallery basket.
  • Android/data/com.miui.gallery/files/trash is a backup folder.

Delete these folders manually, but note:

⚠️ Note: Deleting.trash or.recycle folders can cause system applications to fail. If files or Gallery stop opening after deleting, restart your device or restore folders through backup.

Enable the display of hidden files

Backup of important data

Close all applications that work with files

Use a conductor with Root access (optional)-->

4. disable the cart through MIUI settings (without Root)

In some versions of MIUI (e.g. MIUI 12.5 for Redmi Note 10 Pro), you can completely disable the Recycle Bin function.

Go to: Settings β†’ Applications β†’ Application Management β†’ Files β†’ Memory β†’ Clear Data

This method will reset the Files application settings, including the Recycle Bin History, but after the reboot, the function can be restored.

For permanent shutdown (not available on all devices):

  1. Open the files. β†’ ☰ β†’ Settings β†’ Basket.
  2. Select Turn off the cart or install Auto Clean after 0 days.
  3. Confirm the action and restart the smartphone.

On POCO with global firmware, the path may be different: Settings β†’ Additional settings β†’ File Manager β†’ Trash β†’ Disable

MIUI Global

MIUI China

MIUI Europe (xiaomi.eu)

Castomium (Pixel Experience, LineageOS, etc.)

I don't know.-->

5. Complete Cart Removal via ADB (for Advanced)

If you're willing to use ADB (Android Debug Bridge), you can force the cart to be removed at the system level, which requires connecting your smartphone to your PC and enabling USB Debugging.

First activate debugging: Settings β†’ About Phone β†’ MIUI Version (click 7 times) β†’ Return to Settings β†’ Additional β†’ For Developers β†’ Debugging by USB

Connect your smartphone to your computer and execute the following commands at the terminal (or PowerShell):

adb shell


pm clear com.mi.android.globalFileexplorer #Reset the Files app




rm -rf /storage/emulated/0/.trash # Removal of the main basket




rm -rf /storage/emulated/0/MIUI/Gallery/trash # Removal of Gallery basket




reboot

⚠️ Note: The pm clear command will delete all application Files data, including bookmarks and sorting settings. MIUI 14+, After restarting, the basket can be created again – in this case, repeat the steps from Section 3 (manual deletion of folders).

πŸ’‘

ADB-The method is the most effective way to remove the basket without Root, but it requires caution.

6 Removal of Root Access Recycle Bin (maximum cleaning)

If you have Root rights (for example, through Magisk), you can completely remove the Recycle Bin mechanism by editing system files.This method is suitable for users who want to get rid of the Recycle Bin forever.

Using a Root Explorer (e.g., Root Explorer) go to /system/priv-app/FileExplorer/

Look for files that mention trash or recycle (like TrashProvider.apk). Rename them by adding the.bak extension, or delete them.

Also edit the file /system/build.prop by adding a line:

ro.miui.has_trash=0

This will shut down the basket at the system level.

⚠️ Warning: Incorrect editing of system files can lead to bootloop ( looped boot).Before changes, back up through TWRP Or OrangeFox.

Deleting methodNeed a Root?EfficiencyRisks.
Standard cleaning❌ No.Low (files may remain)Absent.
Manual deletion of folders❌ No.Medium (may recover)Application failure
ADB-team❌ No.Tall.Data loss of the Files app
Editing system filesβœ… Yes.MaximumBootloop, loss of warranty

Frequent Mistakes and How to Avoid Them

Many users experience problems when removing the cart, and here are the most common mistakes and solutions:

  • πŸ”„ Recycle Bin reappears after rebooting Solution: Disable automatic Recycle Bin creation in Files settings or use ADB forced-out.
  • πŸ“ The.trash folder is not deleted (writes "File is busy") Solution: Close all applications that work with files (including Gallery and Downloads), and try again.
  • πŸ”§ After the recycle bin was removed, the system applications stopped working. Solution: Restore deleted folders through backup or reset Files to factory settings.

If none of these methods worked, check if your device is using storage encryption (Settings β†’ Lock & Protection β†’ Encryption) in which case the basket can be stored encrypted and you will need to completely reset the device to remove it.

πŸ’‘

Before experimenting with a basket, check the free space on the device through Settings β†’ Storage. Sometimes the system shows incorrect data about the occupied space due to the cache.

Can I recover files after cleaning the cart?
Yes, but only if the disk space has not been overwritten. Use programs like DiskDigger or Recuva (requires Root for deep scanning), the chances of recovery are higher if you haven't written new files after cleaning.
Why does the cart take up space even if it is empty?
In MIUI, the Recycle Bin reserves up to 5% of the total storage capacity for temporary files, so to free up this space, turn off the Recycle Bin in the settings or use ADB for forced reset.
Will the gallery work without a basket?
Yes, but deleted photos will be erased immediately, without recovery, and if you are interested in data security, we recommend using cloud backups (for example, Google Photos).
How to remove the basket on Xiaomi with custom firmware?
On firmware like LineageOS or Pixel Experience, the basket is implemented differently. Use a file manager with Root access and look for.trash folders in the app. /data/media/0/. Also check the settings of the Files application (in custom firmware it may be called differently).
Can I turn off the Recycle Bin for certain files only?
No, MIUI doesn't have one. The Recycle Bin works for all files or doesn't work at all. The alternative is to use third-party file managers (like Total Commander) where you can configure deletion rules.