Xiaomi does not remove photos from the gallery and asks for access to the gallery SD-map--what to do?

You try to remove photos from the gallery on your Xiaomi smartphone, but instead see the message โ€œAllow access to the cameraโ€ SD-And this problem is typical of devices with external drives, especially if the files were originally saved to a memory card. 90% of the time, it's because of permission settings, conflicts with the memory card. MIUI But there are less obvious nuances, from blocking files with antivirus to the features of the application Gallery.

In this article, we will discuss all possible causes and solutions - from basic (permission check) to advanced (manual mounting). SD-map ADB). You will learn how to get around the restrictions. MIUI, Why do some photos not get deleted even after unlocking access, and what to do if the memory card is damaged, and if standard methods do not work, we will suggest alternative ways to delete through a PC or third-party file managers.

Why Xiaomi is asking for access SD-map when deleting photo

Message โ€œAllow access to SD-The map is displayed when:

  • ๐Ÿ“ฑ Files are physically located on a memory card, but the Gallery app does not have rights to them modification/deletion. Itโ€™s a standard Android restriction, reinforced by security policies MIUI.
  • ๐Ÿ”’ SD-The card is formatted as an โ€œAdoptable Storageโ€ but the system has lost touch with it due to a crash or update.
  • ๐Ÿ› ๏ธ The file system of the card is damaged โ€“ for example, after being extracted during recording or virus infection.
  • ๐Ÿ“‚ Photos blocked by another application (antivirus, cloud backup, image editor).

V MIUI 12โ€“14 The problem is compounded by the fact that the default system restricts access to external drives for most applications.Even if you have given permission to the Gallery, it can reset after a reboot or update.In addition, some Xiaomi models (e.g., Redmi Note) 10 pro POCO X3 Pro) have a mounting bug SD-Maps after upgrading to Android 12/13.

๐Ÿ“Š What kind of Xiaomi model do you have?
Redmi Note 9/10/11
POCO X3/X4
Mi 11/12
Another model
I don't know.

Method 1: Allow access to SD-map MIUI

The first thing you need to do is manually grant permissions to the Gallery app. With newer versions of MIUI, the path to settings has changed, so keep an eye out for the current steps:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Find the Gallery (or Google Photos if you use it) and tap it.
  3. Go to Permits. โ†’ Memory.
  4. Select Allow All Files to be Accessed (or Allow All Files to be Managed in MIUI 14).
  5. Go back to the gallery and try to delete the photo again.

If there's no Memory, then your version of MIUI is hiding it.

  1. Open Settings โ†’ Special Options โ†’ All applications.
  2. Find the Gallery, tap the three points at the top โ†’ Permissions.
  3. Activate the memory switch.

Have given permission for "Memory" in the settings of the application

Reboot the phone after the changes

Try to delete the photo in 5-10 minutes (sometimes it takes time to apply permissions)

Checked that SD-The card is not extracted and is recognized by the system.-->

Important! On some firmware (e.g. MIUI Global for Redmi 9A), the resolution may reset after the update. If the problem comes back, repeat the steps or consider alternatives below.

Method 2: Delete photo through file manager

If the Gallery refuses to delete the photo, try using a standard Files (or a third-party manager like Solid Explorer):

  1. Open the Files app (the folder icon on the desktop).
  2. Go to section. SD-map (or external memory).
  3. Find the DCIM โ†’ Camera folder (or another one where the photos are stored).
  4. Select the files you need, click Delete.

If the files are not deleted here, check:

  • ๐Ÿ” File attributes: They may be labeled "read-only." In Solid Explorer, you can change attributes with a long press. โ†’ Properties.
  • ๐Ÿ”„ Rewire the map: Remove SD-card and insert back (after switching off the phone).

๐Ÿ’ก

If the DCIM folder doesnโ€™t appear in the file manager, turn on the hidden files in the application settings (usually under the โ€œMoreโ€ or โ€œView Settingsโ€ menu).

Method 3: Formatting SD-cards (unless the photo is critical)

If the photos are worthless and the map is unstable, it's easier to format it. Attention: this will delete all the data without any possibility of recovery!

โš ๏ธ Attention: Do not format SD-The card is an "Adoptable Storage" card, unless you plan to use it with this phone alone, and in this mode, the card is encrypted and unreadable on other devices.

Instructions:

  1. Back up important files (if possible).
  2. Go to Settings. โ†’ Memory. โ†’ SD-map.
  3. Slip on the three points at the top โ†’ Memory settings โ†’ Format.
  4. Choose as an external drive (recommended) or as internal memory (power users only).
Formatting modePlusesCons
External driveThe card can be retrieved and used on other devices.Applications will not be able to save data to the map without permissions
Internal memory.Applications can save data without additional permissionsThe card is encrypted, not readable on other devices; when extracted, data will be lost.

Method 4: Using a PC to delete photos

If the phone refuses to interact with SD-map, connect it to the computer:

  1. Extract. SD-card from the phone (pre-mounted in the memory settings).
  2. Insert it into a card reader or adapter for PC.
  3. Open this computer (Windows) or Finder (Mac) and find a removable disk.
  4. Go to DCIM โ†’ Camera and delete the photos.

If the map is not readable:

  • ๐Ÿ–ฅ๏ธ Try another card reader or USB-port.
  • ๐Ÿ› ๏ธ Run error check (in Windows: right-click on the disk) โ†’ Properties โ†’ Service โ†’ Check it out).
  • ๐Ÿ”ง Use utilities like this. SD Card Formatter (official utility) SD Association) for low-level formatting.
What to do if the PC asks to format the card?
If Windows/Mac offers to format a card when you connect, it's a sign of file system damage. Don't agree right away! Try recovering data with programs like Recuva or PhotoRec, and then formatting. If the card is important, contact the service center for professional recovery.

Method 5: Advanced methods (ADB, root, alternative firmware)

If nothing has worked, and it is critical to remove the photo, radical measures remain, requiring technical skills and can lead to loss of warranty or unstable phone operation.

Option 1: Removal via ADB

  1. Turn on USB Debugging in Settings โ†’ About Phone โ†’ MIUI version (tap 7 times, then go back to Additional โ†’ For Developers).
  2. Connect your phone to your PC, open the command line and type in: adb shell rm /storage/XXXX-XXXX/DCIM/Camera/photo.jpg (substitute XXXX-XXXX downhill SD-The map can be recognized by the LS team. /storage).

Option 2: Getting root rights

With root, you can delete any files, but it is risky.

  • ๐Ÿ”“ Use Magisk to unlock root (instructions depend on the model).
  • ๐Ÿ“ฒ Install Root Explorer and manually delete files from the /storage/emulated/0/ or /mnt/media_rw/.

โš ๏ธ Attention: On devices with MIUI 13/14 Android 12+ Getting root can block access to banking applications and Google Pay services due to SafetyNet trigger.

What to do if the photo is not deleted, but the place is vacated

Sometimes files disappear from the gallery, but the space on the map does not decrease.

  • ๐Ÿ—‘๏ธ ยซGarbage files (miniatures, gallery cache) Clear them through Settings โ†’ Memory. โ†’ Cleanup.
  • ๐Ÿ”„ Damaged sectors on SD-Check it with CrystalDiskInfo (Windows) or fsck (Linux/Mac).
  • ๐Ÿ“ Hidden folders with backups (e.g..thumbnails or.nomedia).

Decision:

  1. Use SD Maid or Files by Google to find unnecessary files.
  2. Move all the important data from the card to the PC, then format it.

๐Ÿ’ก

If you don't free up after you delete the photo, it's not the files themselves, it's the file system of the map, and the only reliable solution is full formatting (with a pre-backup).

FAQ: Frequent questions about removing photos on Xiaomi

Can I recover a photo after removing it from SD-map?
Yes, but the odds depend on whether the files have been overwritten. Use programs like DiskDigger (Android) or Recuva (PC). Don't save new files to the map until you recover them!
Why did the MIUI update stop removing photos?
Newer versions of MIUI (starting with MIUI 12.5) have tightened the rules for accessing external drives. After the update, reset the Gallery permissions (see Method 1) and restart the phone.
SD-The map is determined, but the files are not displayed?
This is a sign of file system damage. Connect the card to your PC and execute the command chkdsk X: /f (where X is the disk letter). If it doesn't work, format.
Can I delete a photo without formatting if the card is protected from recording?
Try: Connect the card to another phone/PC. Use the DiskPart utility (Windows) to remove protection: diskpart list disk select disk X (where X is your card number) attributes disk clear readonly
Why are some photos deleted and some not?
Most likely, "undetectable" photos: are in a protected folder (for example, MIUI โ†’ ScreenShot. Blocked by a cloud service (Google Photos, Mi Cloud) with non-standard permissions (for example, RAW-Check the file attributes with Solid Explorer (long press). โ†’ Properties).