How to remove photos from Xiaomi phone: from gallery to hidden folders

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:

  1. Open the Gallery app.
  2. Tap it on three points (โ‹ฎ) top-right โ†’ Basket.
  3. Click Clear or select files manually and delete.

To remove hidden folders:

  1. Connect your phone to your PC or use a file manager (such as Mi File Manager).
  2. Enable the display of hidden files: in Mi File Manager tap on โ‹ฎ โ†’ Settings โ†’ Show hidden files.
  3. 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:

  1. Go to Settings. โ†’ Warehouse โ†’ SD-map.
  2. Tap it on three points (โ‹ฎ) โ†’ Storage settings โ†’ Format.
  3. 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 formattingSpeed.Recovery capabilitySuitable for
Fast.1-2 minutesHigh (files are restored)Cleaning before sale (unsafe)
Complete.10.30 minutesLow (data overwritten)Irreversible removal
Through PC+Recording1-2 hoursMinimumConfidential 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:

  1. Back up important data (contacts, messages, etc.).
  2. Go to Settings โ†’ About the phone โ†’ Reset settings.
  3. Choose Delete all data and confirm.
  4. 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?
If the reset is stuck on the MI logo, try: 1. Press Power + Volume up for 10 seconds for a forced reboot. 2. Enter Recovery Mode (Power + Volume up) and select Wipe Data. 3. If nothing helps, run your phone through the Mi Flash Tool (instructions in the section about firmware).

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:

  1. Install the program on the PC.
  2. Connect Xiaomi and select internal memory as a drive.
  3. Select the folders with the photo (for example, DCIM) โ†’ right button โ†’ Erase.
  4. 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:

  1. Download the app from Google Play.
  2. Open it and give permission to access the storage.
  3. Select files or folders (e.g. DCIM/Camera).
  4. 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:

  1. Install the Mi Flash Tool and Xiaomi drivers.
  2. Turn off the phone and press Power + Volume down to log into the Fastboot.
  3. Connect the phone to the PC.
  4. In the Mi Flash Tool, select the downloaded firmware and press Refresh โ†’ Flash.
  5. Select the Clean All option (complete cleaning).
  6. 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?
1. Link your Mi Account to your phone in Settings โ†’ Mi Account. 2. Go to Mi Unlock and request permission (may take up to 72 hours). 3. Download Mi Unlock Tool, connect your phone in Fastboot mode and follow the instructions of the program. โš ๏ธ After unlocking all data will be erased!

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).

Frequent Questions (FAQ)

Can I recover the photo after resetting the phone to factory settings?
Yes, but only with professional tools like Oxygen Forensic Detective or Cellebrite, and regular programs like Recuva are powerless after reset, so to prevent recovery, after reset, fill your phone's memory with unnecessary files like videos, and that's going to overwrite the old data.
Why do they reappear after the photo is removed from the gallery?
Chances are you have Mi Cloud or Google Photos enabled. Check: Settings โ†’ Accounts โ†’ Mi Cloud โ†’ Gallery Sync (disable). Open Google Photos โ†’ Settings โ†’ Backup and Sync (disable). Also check the DCIM/.thumbnails folder - sometimes thumbnails are restored as full photos.
How to delete a photo from a Xiaomi phone if it does not turn on?
If the phone does not respond to the power button, but is determined by the computer: Connect it to the PC in Fastboot mode (press the Power). + Loudness down. Use it. ADB To access files: Adb pull /sdcard/DCIM/ C:\backup\photos (This will copy the photo to the PC, after which they can be deleted from the phone command adb shell rm. -rf /sdcard/DCIM/*). If the phone is not identified, remove it. SD-If you have a card, format it on another device, and for internal memory without access to the system, only flashing through the Mi Flash Tool will help.
What Xiaomi apps are guaranteed to erase photos without recovery?
The most reliable options are: Eraser (Gutmann 35-pass algorithm), CCleaner (Drive Wiper function). For Android: iShredder 6 (NATO certified), Shreddit (DoD 5220.22-M). Importantly, on phones with MIUI 14+, some utilities may not work due to the limitations of Scoped Storage. In this case, use a PC.
What if the photos are synced to Mi Cloud and returned after deletion?
To delete photos from Mi Cloud forever: Go to i.mi.com under your account. Go to Gallery โ†’ highlight photos โ†’ Delete. Clean the Recycle Bin in the cloud (it stores files for 30 days). Turn off sync: Settings โ†’ Mi Cloud โ†’ Gallery Sync (slider to off). If the photos keep coming back, reset the phone to factory settings without logging in to Mi Account after reset.