How to completely clean the cart on Xiaomi Mi A2: instructions with nuances

Xiaomi Mi A2 is one of the few smartphones of the brand that runs on a โ€œcleanโ€ Android One instead of the proprietary shell MIUI. This feature affects the mechanism of the basket: there is no usual application โ€œFilesโ€ from Xiaomi, and the logic of storing deleted data depends on the file manager used. As a result, users often face problems: the basket is not cleaned, files โ€œhangโ€ in memory, and standard methods do not work.

In this article, we will discuss 5 proven methods of cleaning the basket on the Mi A2 โ€“ from basic to hidden Android functions. Also explain why files can remain in memory after deleting, how to recover accidentally erased data and what to do if the basket is โ€œhungโ€.

Why the Mi A2 cart doesnโ€™t behave like other Xiaomis

The main reason for confusion is the lack of MIUI. On most Xiaomi devices, the shopping cart is integrated into the standard Files app (com.mi.android.globalFileexplorer), where deleted items are stored for 30 days. On the Mi A2, this application is not out of the box, so the logic depends on:

  • ๐Ÿ“ File Manager: Google Files, Solid Explorer, FX File Manager, etc. โ€“ each has its own cart mechanism (or lack thereof).
  • ๐Ÿ–ผ๏ธ Galleries: Google Photos, Gallery Go, or third-party apps (like QuickPic) can create their own shopping carts.
  • ๐Ÿ—‘๏ธ Android system settings: in the โ€œpureโ€ Android basket is implemented fragmentary โ€“ only for media files through MediaProvider.

For example, if you delete a photo through Google Photos, it will go to the app's shopping cart and be stored there for 60 days, and if you delete the same file through Files by Google, it can disappear forever or move to the.Trash folder on the internal drive, which often leads to users being unable to find exactly where the deleted files are stored.

โš ๏ธ Attention: On Mi A2 There is no single โ€œsystem basketโ€ as on iPhone or smartphones with MIUI. Deleted files can be scattered across multiple folders and applications. Before cleaning, check all possible sources (see section below).

Method 1: Cleaning the cart in Google Photos (for media files)

If you delete a photo or video through Google Photos, it goes to his internal shopping cart to clean it up:

  1. Open the Google Photos app.
  2. Slip on the profile avatar in the upper right corner โ†’ select the basket.
  3. Press Control (or) โ‹ฎ โ†’ Clean the basket).
  4. Confirm the action in the dialog window.

Important nuances:

  • ๐Ÿ•’ Files are stored in the Recycle Bin for 60 days, after which they are automatically deleted.
  • ๐Ÿ”„ If you restore a file from the Recycle Bin, it will return to the original folder (e.g. Camera or Downloads).
  • โ˜๏ธ Deleted files do not free up space in Google Drive โ€“ they are permanently erased from Google servers.

Check if there are any important files (double deletion is irreversible)

Make sure your backups are synced to Google Drive

Close other apps that work with the gallery (e.g. Instagram)

-->

Method 2: Manually delete.Trash folder (for Files by Google)

Files by Google (default on many Mi A2) creates a hidden folder called.Trash at the root of internal memory, and it moves files deleted through this manager to clear it:

  1. Open Files by Google.
  2. Go to the Cleanup section. โ†’ Basket.
  3. Select unnecessary files or click Clear Everything.

If the shopping cart in the app doesnโ€™t show up, but youโ€™re sure the files should be there, check the folder manually:

  1. Connect your smartphone to your PC or use a file manager that supports hidden folders (such as Solid Explorer).
  2. Go to /storage/emulated/0/.Trash.
  3. Delete the contents of the folder (or the folder itself if it is empty).

โš ๏ธ Note: The.Trash folder may be hidden. In Solid Explorer, enable the display of hidden files in the settings (โ‹ฎ โ†’ Settings โ†’ Do not delete the.Trash folder completely, it will be recreated the next time you delete the file.

What if the.Trash folder is not deleted?
If the system gives an error "Folder is used", restart the smartphone in Safe Mode (hold the power button โ†’ long tap on "Stop" โ†’ "Reboot in Safe Mode") and try again. 90% of the time this solves the problem.

Many Mi A2 users install Gallery Go, a lightweight version of Google Photos, and the shopping cart works differently in this app:

  • ๐Ÿ—‘๏ธ Deleted files are stored for 30 days (instead of 60 in Google Photos).
  • ๐Ÿ“‚ The cart is in the application itself: open โ‹ฎ โ†’ Basket.
  • ๐Ÿ”„ Recovery is possible only within 7 days (after - files are deleted irrevocably).

To clear the basket:

  1. Launch Gallery Go.
  2. Slip on three dots in the upper right corner โ†’ Basket.
  3. Choose Clear Everything or delete files selectively.

If the shopping cart in Gallery Go does not appear, check:

  • ๐Ÿ”„ Update the application to the latest version (older versions may not have had the shopping cart).
  • ๐Ÿ“ฑ Make sure you delete files through Gallery Go, not through another manager.

Files by Google|Google Photo|Gallery Go|Solid Explorer|Other |I don't know-->

Method 4: Remove via ADB (for power users)

If standard methods don't work, you can clear the cart through ADB (Android Debug Bridge), which is a way to remove "hang" files in system folders that are not visible in the interface, requires a PC and enabled debugging over USB.

Instructions:

  1. Enable Developer Mode on Mi A2: Settings โ†’ About Phone โ†’ Assembly Number (shap 7 times)
  2. Activate USB Debugging in Settings โ†’ System โ†’ For Developers.
  3. Connect your smartphone to your PC and execute commands: adb shell rm -rf /storage/emulated/0/.Trash/* rm -rf /storage/emulated/0/Android/data/com.google.android.apps.photos/files/Trash/*

These commands will clear the Files by Google and Google Photos baskets, respectively. For other applications, the path may be different.

โš ๏ธ Attention: Misuse of the right ADB It can cause data loss or smartphone malfunction.If you are not sure about the commands, use alternative methods (see above).

๐Ÿ’ก

Before working with ADB, back up your important data via Settings โ†’ System โ†’ Backup. This will take 5-10 minutes, but save you nerves in case of an error.

Method 5: Reset the cache of media files (if the basket "hangs")

Sometimes, after cleaning the cart, files continue to show up in the gallery or take up space, and this is due to the cache of the media provider, the system service that indexes files, to reset the cache:

  1. Go to Settings โ†’ Applications and Notifications โ†’ Show all apps.
  2. Find a media store (or media store).
  3. Slip the vault. โ†’ Clear the cache.
  4. Reboot your smartphone.

After the reboot:

  • ๐Ÿ”„ Gallery and file managers rescan memory (may take up time) 1-2 minute).
  • ๐Ÿ—‘๏ธ "Ghost files from the shopping cart should disappear.
  • ๐Ÿ“Š The vacated space will be displayed in the Settings โ†’ Warehouse.

If the problem persists, manually check folders through DiskUsage Analyzer, which will show which files are taking up space, even if they are not visible in standard managers.

๐Ÿ’ก

Resetting the cache of media files is a safe procedure, but after that, the thumbnails in the gallery can disappear, they will recover automatically in 5-10 minutes.

How to recover files from the Recycle Bin on Mi A2

If you accidentally cleared your cart or deleted an important file, the chances of recovery depend on:

Deleting methodChances of recoveryTools
Delete via Google PhotosHigh (60 days)The basket in Google Photos
Removal via Files by GoogleAverage (30 days)A.Trash folder or an app like Dumpster
Removal via ADB or manual cleaningLow.Recuva, DiskDigger (requires root)
Cleaning the basket > 30 days agoMinimumProfessional services (expensive)

For recovery:

  1. Google Photos: Open the Recycle Bin in the app and recover files within 60 days.
  2. Files by Google: Check the.Trash folder (see Method 2).
  3. Third-party tools: Use Dumpster (you need to install before deleting files) or DiskDigger (for deep scanning).

โš ๏ธ Warning: After cleaning the cart, do not write new files to your smartphone, which reduces the chances of recovery. The fewer actions you take with memory, the more likely you are to return the data.

FAQ: Frequent questions about the cart on Xiaomi Mi A2

Why is the disk space not freed after cleaning the basket?
This is due to the peculiarities of the FUSE (Filesystem in Userspace) in Android. The system may not immediately update the data about the free space. Try: Reboot the smartphone. Clear the cache of the Media Storage application (see Method 5). Use SD Maid for deep cleaning. If the problem persists, check the folders through the PC - perhaps the files are physically deleted, but the space they occupy is not yet freed by the system (this is normal for Android).
Can I turn off the cart on the Mi A2?
Yes, but the methods depend on the file manager: Files by Google: go to Settings โ†’ Recycle Bin โ†’ Google Photos: Recycle Bin can not be turned off, but you can reduce the storage period to 1 day in the application settings. Solid Explorer: in the settings, disable the option to Use the Recycle Bin. Note: when you turn off the Recycle Bin, files will be deleted irrevocably.
Where is the downloaded file basket (not media) stored?
For files downloaded through a browser or other applications, the shopping cart depends on the manager: Files by Google:.Trash folder (see Method 2). Chrome/Edge: remote downloads are stored in /storage/emulated/0/Download/.trash (hidden folder). Third-party managers: check the application settings - some (for example, FX File Explorer) create their own shopping carts.
Why does the Mi A2 cart clean itself?
Automatic cleaning occurs for three reasons: Expired storage: in Google Photos - 60 days, in Gallery Go - 30 days. Space shortage: Android can automatically clear the cart if free space < 10%. App update: some managers (for example, Files by Google) reset the cart after the update. To avoid losing files, regularly check the cart or set up automatic backup in Google Drive.
Can I restore the cart after resetting the settings?
No. When you hard reset, the cart is irrevocably cleared, because: The.Trash folders and the app cache are deleted. Google Photos are tied to your account, but the local files in the cart are lost. The only way to get back is to use programs like Dr.Fone or Tenorshare UltData, but they require root rights and don't work all the time.