Why Deleted Photos Stay in Your Phoneβs Memory and How to Fix It
Have you deleted photos on Xiaomi, but they still take up space? Or are you worried that personal photos can be restored after selling your phone? The problem is that standard gallery deletion only moves files to the bin or marks them as invisible to the system. In fact, they stay in the device's memory for up to 30 days - or longer if you don't clear the cache and hidden folders.
In this article, we will analyze 5 working ways to completely remove photos on Xiaomi, Redmi and smartphones. POCO β from cleaning the basket before use ADB-And we'll also explain why even after formatting a memory card, files can be recovered, and how to avoid that.
β οΈ Important: If you're selling or transferring a phone, it's not enough to just erase a photo through a gallery. Use the methods in the "Full Clean Before Selling" section to prevent data recovery.
Method 1: Cleaning the basket in the standard Xiaomi gallery
By default, all photos deleted through the gallery end up in a 30-day shopping cart, and many users forget to clean them, causing the phone's memory to become clogged with invisible files. Here's how to do it correctly:
- Open the Gallery app (the icon with the camera).
- Slip on three horizontal lines in the upper right corner (menu).
- Select the basket item.
- Click Control β Mark all files (check at the top) β Delete.
- Confirm the action by selecting Clean the basket.
β οΈ Note: If you use the Mi Cloud, photos deleted from the Recycle Bin can remain in the cloud. β gallery β Recycle the basket and clean it separately.
Backup important photos | Check if photos are synced with Mi Cloud| Make sure the cart doesn't have the right files | Close all apps that work with the gallery-->
After cleaning the basket, space will be freed up, but files can still be restored using special programs (for example, DiskDigger or Recuva).
Method 2: Removing the cache of the gallery and media storage
Even after cleaning the thumbnail, photos and their metadata can remain in the app cache, which not only takes up space, but also allows recovery software to find deleted files to clear the cache:
- Go to Settings β Applications β Application Management.
- Find and open the Gallery (or Google Photos if you use it).
- Select Warehouse. β Clear the cache.
- Go back and find the Media Storage app.
- Clear its cache and data (reboot your phone will be required).
π‘ A useful tip: if after cleaning the cache gallery is long loading photos, do not be afraid - this is normal.
| Annex | What to clean | Effects of consequences |
|---|---|---|
| gallery | Kesh. | The miniatures will be removed, but not the photos themselves. |
| Google Photo | Cache + data | I'll have to log in again. |
| Media storage | Cache + data | Phone reboot, slow first gallery load |
This method removes traces of photos from system folders, but does not guarantee absolute erasure. For reliability, combine it with method 3 (manual folder cleaning).
Standard Gallery MIUI|Google Photo|Other (e.g. Simple Gallery)|I don't know what I have.-->
Method 3: Manually remove hidden folders (for experienced ones)
MIUI creates a number of hidden folders where you can keep copies of deleted photos, so you can find them and clean them up.
- Connect your phone to your PC via USB (in File Transfer mode).
- Enable the display of hidden files: On Windows: View β Hidden Items. On Mac: Command + Shift +..
- Go to the internal memory folder and delete the contents of the following directories:.thumbnails β thumbnails; DCIM/.thumbnails β gallery-cash; Pictures/.trash β basket; Android/data/com.miui.gallery/cache β standard-galleries.
β οΈ Attention: Do not delete folders DCIM The whole picture is just the contents, otherwise the gallery will stop working properly.
What to do if the folders are not displayed?
For complete confidence after manual cleaning, it is recommended to use specialized programs (method 4).
Method 4: Safe removal programs (without root)
If you need to be guaranteed to erase photos so they can't be restored, use irretrievable deletion apps. They overwrite files with random data, excluding recovery. Best options for Xiaomi:
- πΉ Secure Delete β a simple interface, supports removal by DoD standard 5220.22-M.
- πΉ Shreddit β allows you to choose the number of rewrite passes (from 1 to 35).
- πΉ File Shredder β works without root rights, supports batch removal.
Instructions for Secure Delete:
- Install the app from Google Play.
- Open it and give access to the storage.
- Select files or folders with photos (for example, DCIM/Camera).
- Click Delete and select the rewrite method (DoD 3 passes is recommended).
- Confirm the action.
π Key takeaway: these programs delete files at the physical layer, but they are slower than standard methods.
π‘
Before using Secure Delete, disable sync with Mi Cloud and Google Photos, otherwise copies of the photo will remain in the cloud.
Method 5: Completely Clean Before Selling Your Phone
If you are going to sell or transfer your Xiaomi, it is not enough to delete the photo, you need to completely erase all data, including:
- π Remains in the basket and cache;
- π Login passwords from accounts;
- π± Application settings and system files.
Step-by-step:
- Back up important data (photos, contacts, messages) through Settings β About Phone β Backup.
- Untie accounts: Go to Settings β Accounts and delete Mi Account, Google, social networks. In Settings β Passwords and security, disable biometrics (fingerprint, Face ID).
- Reset: Open Settings β About Phone β Reset. Choose Erase all data. Enter your password and confirm.
Rewrite the memory:
β οΈ Note: if the phone was enabled Find Device (search device), after reset it must be disabled via the web version of the Mi Cloud, otherwise the new owner will not be able to activate the device.
After double reset with memory rewriting, data recovery becomes almost impossible even with the help of professional equipment.