Why simple removal from the gallery doesn't work
You clicked Delete in the Gallery app on your Xiaomi, but are you sure that the photos are gone forever? In fact, standard deletion only moves files to the bin where they are stored for another 30 days, and even after cleaning the cart, the data remains in the device's memory, and can be restored by special programs like DiskDigger or Recuva.
The problem is compounded by the fact that MIUI automatically creates hidden backups in folders like DCIM/.thumbnails or Pictures/.nomedia. And if you sync photos with Google Photos or Mi Cloud, they can "resurrect" after reinstalling the system, and in this article, we'll look at how to delete snapshots without recovery, from manual methods to software "eras" at the binary data level.
Important: the procedure is different for devices with internal memory (where the photos are stored on the built-in drive) and SD-For memory cards, formatting is enough, and for internal memory, additional steps will be required.
Method 1: Cleaning the Recycle Bin and Hidden Folders in MIUI
Before resorting to radical measures, check the standard storage spaces for โgarbageโ in MIUI firmware. Even after removal from the gallery, files can remain in:
- ๐๏ธ Gallery Recycle Bin - Stores files for 30 days (Gallery Settings) โ Basket).
- ๐ Hidden folders โ DCIM/.thumbnails (thumbnail), Pictures/.nomedia (copy-copy).
- โ๏ธ Cloud services โ Mi Cloud or Google Photos (if sync is enabled).
- ๐ App cache โ for example, WhatsApp or Telegram cache, if you sent photos through messengers.
To clear the basket:
- Open the Gallery app.
- Tap it on three points (โฎ) top-right โ Basket.
- Click Clear or select files manually and delete.
To remove hidden folders:
- Connect your phone to your PC or use a file manager (such as Mi File Manager).
- Enable the display of hidden files: in Mi File Manager tap on โฎ โ Settings โ Show hidden files.
- Go to DCIM and Pictures folders, delete the contents of the dot-in-the-begin folders (e.g.,.thumbnails).
Delete files from the gallery cart | Clear hidden folders (.thumbnails,.nomedia) | Disable sync with Mi Cloud/Google Photo | Check the messenger cache (WhatsApp, Telegram)
-->
โ ๏ธ Note: If you used the Duplicate function in the gallery MIUI, The system could create copies of the photo in the folder Pictures/Duplicates. Remove them separately!
Method 2: Formatting SD-cards (for external memory)
If the photos are stored on SD-The most reliable way to remove them is through full formatting, and unlike internal memory, microSD cards are formatted without a trace (when set up correctly).
Instructions:
- Go to Settings. โ Warehouse โ SD-map.
- Tap it on three points (โฎ) โ Storage settings โ Format.
- Choose full formatting (not fast!) This will take longer, but the data will be overwritten.
For maximum reliability:
- ๐ง Use a PC: paste the card into the card reader, open Disk Utility (Mac) or Windows Disk Management (Windows), select formatting in the card reader. FAT32 exFAT.
- ๐ After formatting, write a large file (such as a movie) to rewrite the old data.
| Type of formatting | Speed. | Recovery capability | Suitable for |
|---|---|---|---|
| Fast. | 1-2 minutes | High (files are restored) | Cleaning before sale (unsafe) |
| Complete. | 10.30 minutes | Low (data overwritten) | Irreversible removal |
| Through PC+Recording | 1-2 hours | Minimum | Confidential data |
โ ๏ธ Attention: If SD-The card was used as internal memory (Adoptable Storage in Android), it can't be formatted with standard means!
Method 3: Resetting the phone to factory settings
If the photos were stored in internal memory, not in the SD-Hard reset will delete all data, including system files, but does not guarantee 100% protection from recovery (specialized programs can find fragments of files).
How to reset:
- Back up important data (contacts, messages, etc.).
- Go to Settings โ About the phone โ Reset settings.
- Choose Delete all data and confirm.
- After the reboot, the phone will look like new.
To increase efficiency:
- ๐ After reset, fill the memory with unnecessary files (for example, download several movies.
- ๐ Disable Mi Account before reset to avoid automatic cloud sync.
What to do if the phone is not reset?
Cons of the method:
- โ All data, including applications and settings, is deleted.
- โ Some Xiaomi models (such as the Redmi Note 10 Pro) retain some system files even after a reset.
- โ If photos are synced with Mi Cloud, they will return after logging in to your account.
Method 4: Using software for safe removal
To guarantee that you delete it without resetting your phone, use specialized utilities that overwrite files with random data, making recovery impossible. Let's take two options: for PC and for Android.
Option A: Utilities for PC (most reliable)
Connect your phone to your computer in File Transfer (MTP) mode and use:
- ๐ฅ๏ธ CCleaner โ Drive Wiper (rewriting free space).
- ๐ฅ๏ธ Eraser โ supports DoD algorithms 5220.22-M (7 re-recording passes).
- ๐ฅ๏ธ DBAN โ for complete cleaning (requires an unlocked bootloader).
Instructions for Eraser:
- Install the program on the PC.
- Connect Xiaomi and select internal memory as a drive.
- Select the folders with the photo (for example, DCIM) โ right button โ Erase.
- Choose the Gutmann method (35 passes) for maximum security.
Option B: Apps for Android
If you do not have access to the PC, use:
- ๐ฑ Secure Delete โ Overwrites files before deleting them.
- ๐ฑ Shreddit supports DoD algorithms and NATO.
- ๐ฑ iShredder โ certified for military standards.
Example of Secure Delete:
- Download the app from Google Play.
- Open it and give permission to access the storage.
- Select files or folders (e.g. DCIM/Camera).
- Press Secure Delete and select the 7-pass DoD method.
Standard removal from the gallery|Cleaning the basket|Formatting SD-map|Phone reset|I use software for safe removal.
-->
โ ๏ธ Attention: On phones with MIUI 14+ Some applications for secure removal may not work due to Scoped Storage limitations.In this case, use a PC or roll back on the site. MIUI 12.
Method 5: Phone firmware (for advanced users)
If you're selling or transferring a phone and want to erase all your data at the firmware level, use the fastboot firmware through the Mi Flash Tool, which completely overwrites the userdata section where the photos are stored.
What you need:
- ๐ฅ๏ธ Windows computer.
- ๐ Cable USB (preferably original).
- ๐ฅ Firmware for your model (download from the official Xiaomi website).
- ๐ง Unlocked bootloader (if not unlocked, follow the instructions below).
Step-by-step:
- Install the Mi Flash Tool and Xiaomi drivers.
- Turn off the phone and press Power + Volume down to log into the Fastboot.
- Connect the phone to the PC.
- In the Mi Flash Tool, select the downloaded firmware and press Refresh โ Flash.
- Select the Clean All option (complete cleaning).
- Wait for completion (5-10 minutes).
Advantages of the method:
- โ Deletes all data, including system files.
- โ Recovery of photos becomes impossible.
- โ Phone gets 'clean' firmware without trash.
Disadvantages:
- โ Requires unlocking the bootloader (resets all data!).
- โ The risk of โbrickingโ with incorrect firmware.
- โ Not suitable for beginners.
How to unlock the bootloader on Xiaomi?
Additional measures: how to avoid leakage of photos in the future
To avoid having to delete the photo, follow the simple rules:
- ๐ Turn off automatic synchronization: Settings โ Accounts. โ Mi Cloud โ Synchronization of the gallery (turn off).Google Photos โ Settings โ Backup and synchronization (turn off).
- ๐ Keep confidential photos in protected folders: Use Private Folder in your home MIUI (Settings โ Confidentiality โ Private Folder, or apps like KeepSafe or GalleryVault.
- ๐ซ Do not transfer photos through messengers without encryption (in Telegram use Secret chats).
- ๐ Clean the cache regularly: Settings โ Warehouse โ Cache data. โ Clean up
๐ก
If you often take photos of documents or personal data, use the Confidential Album mode in the standard MIUI gallery. Photos from it do not appear in the main tape and are not synced with the cloud.
For maximum safety:
- ๐ Set a password for the gallery (Gallery settings) โ Password).
- ๐ต Turn off preview in messenger notifications (for example, WhatsApp).
- ๐ Check application permissions (Settings) periodically โ Annexes โ Permits โ Warehouse).