Ever wondered what happens to photos after they are deleted from Xiaomi? A simple click on Delete in a gallery only hides files from the user's eyes - they remain in the device's memory until they are overwritten with new data. This means that with special programs (like DiskDigger or Recuva), they can be restored even after months. Especially a problem for owners of Redmi Note 12, POCO X5 or Xiaomi 13T, where the internal memory reaches 256 GB, here photos can "lay to the bottom" for a long time.
In this article, we will discuss 5 ways to permanently delete photos from Xiaomi phones based on MIUI 14/13 (including global and Chinese versions of firmware), how to erase files so that they can not be restored even in the service center, and what hidden MIUI features allow you to bypass the restrictions of Android on low-level formatting.
Why Normal Deletion Doesnβt Work: How Xiaomi Stores Files
When you delete a photo through a standard Gallery or Files, MIUI performs two operations:
- π Moves the file to the.Trash folder (if the basket is enabled) or marks it as βdeletedβ in the file table FAT32/exFAT.
- π Frees up busy clusters to write new data, but doesnβt physically erase the data itself.
This means that until these clusters are overwritten (for example, when taking new photos or installing apps), the original files can be restored. Moreover, on Xiaomi with encrypted storage (application protection in Settings β password and security), recovery is difficult, but does not become impossible for professional tools.
The speed of the rewrite depends on:
- π± Memory: 128 GB free space is overwritten longer than 64 GB.
- π User activity: if you often shoot videos 4K If you install games, the chances of recovering old photos are reduced.
- π οΈ Like a memory: UFS 3.1 (in Xiaomi 13 Pro) rewrites data faster than eMMC 5.1 (in Redmi) 9A).
β οΈ Note: If you sell or transfer a phone, even after resetting to factory settings (Settings) β The phone. β Resetting) photos can be restored. Complete cleaning requires encryption + formatting.
Method 1: Removal through βSafe Deletionβ in MIUI
Starting with MIUI 12, Xiaomi added a built-in secure delete feature that rewrites files by zeros before erasing.This method does not require root rights and works on all models, including the POCO F4 and Redmi K50.
Instructions:
- Open the Files app (folder icon).
- Go to Images or find the DCIM/Camera folder.
- Select the photos by holding your finger on one of the files.
- Click on the three dots in the top right corner and select Safe Deletion.
- Confirm action. The system will begin the process of rewriting (can take up to 5 minutes for 100 photos).
How it works:
- π’ The file is first filled with random data (DoD algorithm) 5220.22-M).
- ποΈ Then a standard removal occurs.
- β³ Time depends on file size and processor performance (Snapdragon 8 Gen 2 is faster than Helio). G88).
β οΈ Warning: Safe Deletion is not available if photos are stored on SD-For this, use Method 3 (formatting).
βοΈ Preparation for safe disposal
Method 2: Use low-level erasure applications (without root)
If your version of MIUI does not have Safe Delete feature, use third-party utilities.
| Annex | Support for MIUI | Erasure algorithm | Cons |
|---|---|---|---|
| iShredder 6 | Yes (including MIUI 14) | DoD 5220.22-M, Gutmann | Paid version for full functionality |
| Secure Delete | Yes (requires Android 8+) | 1-35 re-recording passes | Slow operation on weak chips |
| File Shredder | Yes (except MIUI for China) | Random Data, Zero Fill | Advertising in the free version |
Step-by-step instructions for iShredder 6:
- Install the app from Google Play.
- Open iShredder and select File Shredder.
- Click Select Files and select photos in /storage/emulated/0/DCIM folder.
- Select the Gutmann algorithm (35 passes) for maximum security.
- Confirm deletion. The process can take up to 30 minutes for 1GB of photo.
Advantages of the method:
- π It works without root rights.
- π Supports choice of security level (from 1 to 35 passes).
- π You can delete files selectively, not the entire folder.
π‘
Before using third-party shredders, disable battery optimization for the application in Settings β Apps β Permissions β Battery Optimization. This will prevent the process from interrupting.
Method 3: Complete formatting of internal memory (reset + encryption)
If you want to delete all the photos at once (for example, before selling your phone), the most reliable way is to combine the formatting:
- Encryption (turns data into an unreadable form).
- Reset to factory settings (removes encryption keys).
- Formatting via Fastboot (optional for paranoids).
Instructions for Xiaomi:
- Activate encryption: Go to Settings β Password and security β Encrypt the phone. Install it. PIN-code (if not installed) Click Encrypt the phone and wait until it's complete (1-2 hour).
- Reset: Open Settings β About Phone β Reset. Choose Erase all data. Enter your password and confirm.
- (Optional) Fastboot Format: Turn off your phone and press Power + Vol Down to log into Fastboot. Connect to your PC and execute the command: fastboot erase userdata
Why it works:
- π Encryption makes files inaccessible without a key that is erased when reset.
- π§Ή Fastboot erase physically cleans the userdata section where photos are stored.
β οΈ Note: On some models (Redmi) 10C, POCO M4 Pro) after reset, the encryption is automatically disabled. Check this in Settings β Password and security.
What to do if the phone is not encrypted?
Method 4: Remove via TWRP (for hard-wired phones)
If your Xiaomi has a custom TWRP recap on it, you can use it to format the photo partition in a low-level way, which ensures that the data is erased without recovery.
Instructions:
- Turn off your phone and press Power + Vol Up to log in to TWRP.
- Go to the Wipe section β Advanced Wipe.
- Check the Data box (not Dalvik/ART Cache!).
- In the Format Options field, select Format Data (this is full formatting, not just cleaning).
- Enter yes to confirm.
- After completion, reboot to the system.
What happens with Format Data:
- ποΈ Section /data (where the photos are stored) formatted in F2FS or ext4 (firmware-dependent).
- π₯ All data, including the remnants of deleted files, are erased.
- β οΈ Recovery after this method is impossible even in laboratory conditions.
Warnings:
- π¨ This method will remove all data from the phone, including apps and settings.
- π§ Pre-installation required TWRP and unlocked loader.
π‘
Formatting via TWRP is the only way to guarantee data erases from phones on MediaTek processors (like the Redmi Note 11 with the Helio G96), where a standard reset often leaves tails.
Method 5: Rewrite free space (for power users)
This is a good way to remove photos selectively, but ensure that they can't be recovered, and the idea is to manually rewrite the clusters where the files were stored with random data.
You'll need:
- π± Phone with root rights (or PC with root rights) ADB).
- π» Annex SD Maid or DiskUsage.
- π§ Patience (the process can take several hours).
Instructions via SD Maid:
- Install SD Maid and provide root access.
- Open the CorpseFinder section (search for file bodies).
- Choose to clear the free space.
- Specify the number of passes (recommended 3-7 for speed and safety balance).
- Press Start and wait until it is completed.
Alternative via ADB (for PC):
adb shell
su
dd if=/dev/urandom of=/storage/emulated/0/tempfile bs=1M
rm /storage/emulated/0/tempfileThis command fills the free space with random data, and then deletes the temporary file. Repeat it 2-3 times for reliability.
β οΈ Attention: On phones with UFS 3.0/3.1 (Xiaomi 12S Ultra, Black Shark 5) This method can reduce memory life because of the many write cycles. 1 half-yearly.
What to do with the photos on SD-map
If the photos are stored on a microSD, standard deletion methods will not work β the memory cards use a different controller and do not support functions like Safe Deletion in MIUI.
Ways to do this SD-map:
- π Full Formatting via Phone: Go to Settings β Warehouse β SD-Select Format as internal storage (if the card is supported). After formatting, format it again as Portable storage.
- π» PC usage: Connect the card to your computer via a card reader. Open Disk Management (Windows) or GParted (Linux). Delete the partition and create a new one (this will lead to overwriting the file table).
Physical destruction
- If the card is not needed, break it or burn the contacts with a lighter.
- For complete confidence, use a degausser (degausser device).
Important:
- π SanDisk Ultra and Samsung Maps EVO They have a built-in controller that can hide damaged blocks, and the formatting through the phone doesn't always clean them completely.
- π Use it to check. H2testw (Windows β it will show the real size of the map after formatting.