Deleting all photos from Xiaomi Gallery can be necessary in a variety of situations, from freeing up memory before selling your phone to wanting to get rid of unnecessary pictures after a vacation. However, standard allocation of files one by one takes hours, and the βDelete Allβ function is often hidden or not working correctly. In this article, we will discuss 5 proven ways to mass delete photos β from built-in MIUI tools to hidden file manager functions and even commands through ADB.
The feature of Xiaomi, Redmi, Poco and Black Shark smartphones is that the gallery is closely integrated with the Mi Cloud service, which means that simply removing files from a device does not always lead to their complete disappearance - photos can remain in the basket or sync again.
1. Standard method: Mass removal through MIUI gallery
The most obvious method is to use the built-in features of the Gallery app, but many users find that the "Share All" option is either missing or not working properly.
Open the Gallery app and go to Albums β All photos. It's important to take your time here: if you have date sorting enabled, the system can split the images into individual events, so you can see all the photos at once:
- π Click on the three dots in the top right corner and select Show by: All (not Monthly or Event-By-Events").
- β Now, tap and hold your finger in any shot to activate the selection mode. The top panel will display the All-Specify icon (if not, read the next paragraph).
- ποΈ Once you've selected, click on the basket icon. The system will prompt you to confirm the deletion, agree.
If you don't have the All-Seize button, you have an old version of MIUI (up to 12.5) or you have an album grouping enabled.
- Return to the gallery's main screen.
- Slip on the albums β Camera (here usually stored all photos from the main module).
- Repeat the extraction attempt.
β οΈ Attention: The photos that are deleted through the gallery are put in the cart and stored there for 30 days. β Basket and clean it manually.
2. Through the file manager: where are the photos stored and how to delete them
The Gallery app is just an add-on to the real file system. All photos are physically stored in /storage/emulated/0/DCIM/Camera/ (for the main camera) and /DCIM/Screenshots/ (for screenshots). By deleting files directly through the file manager, you bypass gallery restrictions.
Instructions:
- Open the built-in Explorer (or install Solid Explorer if the standard manager doesnβt like it).
- Go to the internal drive β DCIM β Camera.
- Slip on three dots in the upper right corner and select Highlight All.
- Click Delete and confirm the action.
The advantage of this method is that you can see all files, including hidden ones (for example, thumbnails with the.thumb extension or backups from editors).
| Problem. | Decision |
|---|---|
| Not all folders are displayed | Enable the display of hidden files in the Explorer settings |
| Files are not deleted ("Forbidden") | Grant the conductor permission to access the storage in Settings β Appendices β Permissions |
| Photos remain in the gallery after removal | Clear the gallery cache in Settings β Apps β Gallery β Storage |
Backup important photos | Check free space on your device | Disable sync with Mi Cloud | Close all applications using the gallery-->
If you delete a photo before selling your phone, after cleaning the DCIM folder, it is also recommended to go to Settings β Memory β Cleanup and start a deep garbage cleanup. This will remove thumbnails and temporary files that may have been left.
3. Using Google Photos for Mass Deletion
If your photos are synced to Google Photos, you can delete them centrally via a web interface or a mobile app, which is convenient because it allows you to manage your photos on all devices at the same time.
How to delete all photos via Google Photos:
- π Open photos.google.com in your browser or launch the app.
- π In the search bar, enter photos from:camera (this will filter only the photos from the camera, eliminating screenshots and uploaded images).
- β Click on the profile avatar β Photo settings β Storage management.
- ποΈ Choose Delete all photos in the cart (if they have already been deleted) or use mass highlighting in the album.
Google Photos stores deleted files in the trash for 60 days to erase them forever:
- Go to the basket section in the side menu.
- Press Clear the basket.
- Confirm the action (it is irreversible!).
What happens if you delete your photos from Google Photos?
β οΈ Note: If you have backup and sync enabled in Google Photos, new images will automatically be downloaded back. Before mass deletion, turn off this option in the app settings.
4.Reset gallery through MIUI settings (without data loss)
When standard methods don't work (for example, a gallery freezes when you're taking mass allocation), you can reset the Gallery app to factory settings, which won't delete the photos themselves, but will clear the cache, thumbnails and temporary files, which sometimes solves the problem of "invisible" images.
Step-by-step:
- Go to Settings β Applications β Application Management.
- Find the gallery in the list and tap it.
- Select Warehouse β Clear cache and Clear data.
- Confirm the action. The app will restart.
After discharge:
- π The gallery will re-build the photo index (it can take a few minutes).
- π Temporary files (e.g. edited copies) will be deleted.
- βοΈ All personal settings of the gallery (sort, hidden albums) will be reset.
If the goal is to make room, re-check the DCIM folder through the Explorer after the gallery is reset, often with duplicates or files with the.nomedia extension that do not appear in the gallery, but take up memory.
π‘
Before you dump the gallery, export important albums: open the album you want β three dots β Export. This will save copies of the photo in a separate folder.
5. The radical method: ADB-crews to clean up
For power users who want to be guaranteed to delete all photos without recovery, the Android Debug Bridge (ADB) method is suitable, which requires connecting the phone to a computer, but allows you to erase files at a low level, bypassing the limitations of MIUI.
What you need:
- π₯οΈ Computer with installed ADB-driver.
- π± Included debugging by USB on Xiaomi (Settings) β The phone. β Version. MIUI β Tap 7 times, then return to the additional β For developers β Debugging by USB).
- π USB-cable (preferably original).
Instructions:
- Connect the phone to the PC and confirm the debugging permission.
- Open the command line (Windows) or terminal (macOS/Linux) in the adb folder.
- Enter the command to check the connection: Adb devices must display the serial number of your device.
- Run the command to delete all photos from the DCIM/Camera folder: adb shell rm -rf /sdcard/DCIM/Camera/*
- To remove screenshots: adb shell rm -rf /sdcard/DCIM/Screenshots/*
Warnings:
- π¨ This command irreversibly deletes files bypassing the basket.
- π If you have storage encryption enabled, you may need to unlock your phone before executing a command.
- π Commands do not affect cloud copies in Mi Cloud or Google Photos β they must be removed separately.
π‘
ADB-A command error (such as an extra space or symbol) can result in the deletion of the NOT-so-called files. Always double-check the paths!
Frequent Mistakes and How to Avoid Them
When you delete a photo on Xiaomi, users often face typical problems, and here are the most common ones and how to solve them:
| Mistake. | Reason. | Decision |
|---|---|---|
| "Inadequate rights to delete" | The file manager does not have access to the folder. | Grant rights manually in the application settings |
| Photos returned after being deleted | Synchronization with Mi Cloud enabled | Disable autosynchronization in Settings β Xiaomi Account β Mi Cloud β Gallery |
| The gallery hangs in the mass allocation | Too many files or a damaged cache | Clear the gallery cache (see section 4) or use a conductor |
| You can't see the "Select All" button. | Obsolete version of MIUI or grouping by album | Update MIUI or change the display mode to "All photos" |
Another common problem is that photos remain in search results even after they are deleted, because MIUI indexes files for quick search, to update the index:
- Go to Settings β Applications β Search.
- Choose Clear Data.
- Reboot the phone.
If you delete a photo before transferring your phone to another person, remember to:
- π Log out of Xiaomi account (Settings) β Xiaomi account β Get out).
- π§Ή Clear the application data Messages, Contacts and Browser.
- π Perform reset to factory settings (Settings) β The phone. β Resetting settings).