How to safely delete folder on the phone Xiaomi Redmi: all the ways

Deleting folders on Xiaomi Redmi smartphones only seems like a simple task – in practice, users are faced with secure system directories, hidden MIUI files and errors like β€œInadequate rights” or β€œFolder is used.” In this article, we will discuss all working methods for deleting from a standard file manager to ADB commands, and explain why some folders can not be deleted without root rights and how to circumvent the limitations of MIUI 14/15.

We'll focus on hidden folders with app cache (e.g. com.miui.gallery or Android/data) β€” if they're deleted incorrectly, you can crash your camera or gallery. We'll also show you how to distinguish system directories from user directories so you don't mess with your phone. If you're trying to make room on a Redmi Note 12 or Redmi 10C, but the folder doesn't get deleted, you'll find a solution here.

1. Delete the folder through the standard MIUI file manager

The most obvious way is to use Xiaomi’s built-in file manager, which is suitable for deleting custom folders (such as photos, music, or downloads), but often blocks access to system directories.

Open the Files app β†’ go to Device or Internal Memory. Find the folder you want, hold it with your finger for 2 seconds until the tick appears. Then click on the basket icon in the top menu. If the delete button is inactive, the folder is protected by the system.

  • πŸ“ What folders can be deleted: Download, DCIM/Camera (If you have moved photos, Music, Documents.
  • πŸ”’ Which folders are protected: Android, MIUI, system, any with the name com.* (appendices).
  • βš™οΈ Nyuance: MIUI 14+ some folders (e.g, Pictures/Screenshots) Disable only after synchronization with Mi Cloud is disabled.

⚠️ Note: If you delete the folder DCIM/.thumbnails If you get an error, it means that the gallery is still using thumbnails, close all apps through Recent and try again.

β˜‘οΈ Preparation for folder deletion

Done: 0 / 4

2. Delete via PC: Connecting the phone as USB-accumulator

If the MIUI file manager refuses to delete the folder, try connecting Redmi to your computer, which works even for some secure directories (such as Bluetooth or Alarms), but requires you to set up the connection correctly:

First, activate the file transfer mode (MTP):

  1. Connect your phone to your PC through USB-cable (preferably original).
  2. On the Redmi screen, select File Transfer (not Charge Only!).
  3. On your computer, open This computer β†’ find the Xiaomi device in the Devices and Disks section.
  4. Go to the desired folder and delete it in the standard way (Delete key or right mouse button β†’ Delete).

Problem.Reason.Decision
The folder is not displayed on the PCHidden MIUI filesEnable the display of hidden elements in the Windows Explorer settings (View β†’ Hidden elements)
The "Access Denied" ErrorThe folder belongs to the system applicationUse ADB (Section 4) or get root rights
The phone is not defined as a storage device.Faulty cable or portTry another USB cable/port or enable USB Debugging (Section 3)

If the folder is deleted but then reappears (e.g. Android/data/com.xiaomi.midrop), it means that the system application restores it, in which case only disabling the application through settings or removing root rights will help.

πŸ“Š What is the way you connect to your PC more often?
MTP (file transfer)
PTP (photo)
Just charging.
ADB (debugging)
Not plugged in.

3. Enable debugging over USB for extended access

Deleting some folders (such as remnants of remote applications in /data/data) will require USB debugging (ADB), a method suitable for advanced users and requires pre-configuration:

Activate the Developer Mode:

  1. Go to Settings. β†’ The phone.
  2. Click on the MIUI version 7 times until the notification β€œYou became a developer” appears.
  3. Back to Settings β†’ Additionally. β†’ For developers.
  4. Turn on USB debugging and confirm the permission.

Now connect the phone to the PC, install it. ADB-Drivers and check the connection with the team:

adb devices

If the device appears in the list, you can start deleting folders through ADB (more about this in the next section).

⚠️ Warning: Do not turn on debugging by USB On phones with sensitive data, if you connect them to public computers (for example, in an Internet cafe), this can lead to the leakage of personal information.

What if the ADB can’t see the device?
1. Make sure File Transfer Mode is enabled (MTP), 2. check if the Xiaomi drivers are installed USB Drivers (you can download it on the official website). 3. Try another one. USB-cable (preferably original). 4. Reboot your phone and PC. 5. In For developers, enable Unauthorization debugging. USB, Then reconnect the device and confirm trust in the PC.

4. Delete folders via ADB: commands for power users

With Android Debug Bridge (ADB), you can delete folders that are not available through standard methods, such as clearing the cache of system applications or remnants of remote programs. Importantly, the wrong ADB command can cause MIUI to crash β€” use this method only if you are sure of your actions.

The main commands for working with folders:

adb shell


ls /sdcard/Folder name #Folder content check




Rm -r /sdcard/Folder name #Folder deletion (irrevocable!)

Examples of real ways:

  • /sdcard/Android/obb – Game files (can be deleted if games are not in use)
  • /sdcard/MIUI/sound_recorder β€” tape-recording.
  • /sdcard/DCIM/.thumbnails – Gallery miniatures (you can remove them, but they will be restored at the next gallery opening).

If the folder is in /data/data (e.g., application residues), root rights or commands will be required:

adb shell pm uninstall -k --user 0 name.packet

To find out the name of the package, use:

adb shell pm list packages | grep "keyword"

adb pull /sdcard/ Name of the folder C:\Backup\

This will copy the folder to your PC, and you can restore it if necessary.-->

5 Why the folder is not deleted: common errors and solutions

Even after all the manipulation, some folders may not be deletionable, and consider typical scenarios and how to circumvent them:

  • πŸ”„ The folder appears again after deletion: It is restored by the system application (for example, com.miui.player creates a folder). MIUI/music). Solution: Disable the application in the settings or delete it through ADB.
  • πŸ” Β«Not enough rights": the folder belongs to another user (e.g. root) Solution: get root rights or use ADB with superuser rights (adb root).
  • πŸ“± Phone freezes when deleted: Folder is currently being used by the system Solution: Reboot phone in Safe Mode (hold power button) β†’ Β«Reboot in Safe Mode and try again.
  • πŸ—‘οΈ The folder is "empty" but not deleted: It may contain hidden files.Solution: use the command ADB ls -a, See all the elements.

Mi Cloud folders (e.g. MIUI/Backup) are particularly difficult to remove, and if sync is enabled, the system will restore them automatically.

  1. Open your Settings β†’ Accounts β†’ Mi Cloud
  2. Turn off sync for an application associated with the folder (such as Gallery or Notes).
  3. Delete the folder and restart the phone.

πŸ’‘

If the folder is not deleted in any way, it is likely critical to MIUI, in which case it is best left or transferred to the memory card (if possible).

6.Alternative methods: root rights and third-party file managers

If the standard methods didn’t work, there are radical measures left to get root rights or use specialized applications. Remember: Xiaomi does not officially support rooting, and this may take away your warranty.

Method 1: Root rights + Root Explorer

Once you get root (for example, through Magisk), install a file manager with super-user support, such as Root Explorer or Solid Explorer, where you can:

  • Delete system folders (e.g. /system/app).
  • Change access rights (chmod).
  • Edit files in /data/data.

⚠️ Attention: Removal of folders in /system This can lead to a phone "brick" (unable to download). TWRP before such operations.

Method 2: Apps without root

Some file managers (such as FX File Explorer or Mixplorer) can work directly with ADB, allowing you to delete folders without manually entering commands.

  1. Connect your phone to your PC and activate ADB (as in Section 3).
  2. In the manager settings, turn on ADB-access.
  3. Go to the desired folder and delete it through the context menu.

7. How to free up space without deleting folders: alternative solutions

If the goal is to free up memory, rather than specifically delete the folder, consider safer ways to:

  • 🧹 Cache Clearing: Go to Settings β†’ Annexes β†’ Application management, select an application (such as Gallery) and click Clear Cache.This will delete temporary files in the /data/data/name-pack/cache.
  • πŸ“± Transfer to memory card: In the file manager, hold the folder β†’ Cut out β†’ cross over SD-map β†’ Insert. Works for multimedia and documents.
  • ☁️ Cloud Storage: Move your files to Google Drive, Mi Cloud or Yandex Disk, then delete local copies.
  • πŸ” Search for Large Files: In the File Manager, click on three dots β†’ Storage analysis. Delete unnecessary videos, APK file-book.

Redmi with MIUI 14/15 has a built-in Deep Cleanup feature:

  1. Open Security (Icon with Shield)
  2. Select Cleanup. β†’ Deep cleaning.
  3. Mark unnecessary files (such as Residual Files or Large Files) and click Clear.

This method is safer than manual folder removal, as MIUI automatically ignores system directories.

FAQ: Frequent questions about deleting folders on Xiaomi Redmi

Can I delete the Android folder on Xiaomi Redmi?
Android folder contains application data (cache, settings, OBB-You can't delete it completely, it'll cause software to malfunction: Android/obb β€” Game files (can be deleted if games are not used). Android/data β€” Application data (you can only delete after uninstallation of the program). Use the application settings (Settings) to clean up. β†’ Annexes β†’ Warehouse β†’ Clear the data).
How to delete a folder from a photo if it is not deleted?
If the DCIM/Camera or Pictures folder is not deleted: Check if the gallery is open in the background (close it through Recent). Turn off sync with Mi Cloud (Settings β†’ Accounts β†’ Mi Cloud β†’ Gallery). Move the photo to your PC or memory card, then repeat deletion. If the folder is still not deleted, use ADB: adb shell rm -r /sdcard/DCIM/Camera
What happens if you delete the MIUI folder?
The MIUI folder contains the system files of themes, sounds, fonts and shell settings, and its deletion will result in: Failure of the themes (return the standard theme), disappearance of user alarm/notification sounds, errors in Notepad, Recorder and other standard applications. Solution: Refuse the phone through Fastboot or restore the folder from the backup.
How to delete the folder with root rights on Xiaomi?
With root rights, you can delete any folder, but it's dangerous. Instructions: Install Root Explorer or Solid Explorer. Give the root app access when you request it. Go to the folder you want (for example, install Root Explorer or Solid Explorer, /system/app). Hold the folder. β†’ select Delete. ⚠️ Attention: Removal of folders in /system or /vendor It can make your phone inoperable. Always backup through TWRP before.
Why does it appear again after the folder is deleted?
This means that the folder is restored by a system application. For example: MIUI/screenrecorder is created by the Screen Record application. Android/data/com.xiaomi.scanner is restored by the Document Scanner. DCIM/.thumbnails is generated by the Gallery when you open. Solutions: Disable the application in settings (Settings β†’ Applications β†’ Disable). Delete the application via ADB (adb uninstall name.packet). Use the App Quarantine (in MIUI 15) to block folder creation.