How to delete error report on Xiaomi: 5 proven ways

Error reports on Xiaomi devices are automatically stored in the system after application crashes, MIUI crashes or hardware problems. These logs take up space in memory, can contain sensitive data and even affect performance. However, there are no standard tools to remove them from the smartphone menu - hidden commands or technical manipulation are required.

In this article, we will discuss all the current ways to clean error logs: from simple (via Settings β†’ Memory) to advanced (using ADB and Fastboot). Separately, we will focus on the nuances for different versions of MIUI (12-14) and models (Redmi Note 12, POCO X5, Xiaomi 13T, etc.). If you are faced with constant notifications of β€œcritical errors” or want to free up space, read on.

Why error reports accumulate and how dangerous it is

MIUI detects errors in two types of files:

  • πŸ“ Logs of applications (/data/anr/, /data/tombstones/) β€” Remains in the event of a software crash (e.g. Google Play Services or MiuiHome).
  • πŸ“Š System dumps (/data/system/dropbox/) β€” are created when the kernel, drivers or hardware modules fail (camera, sensors).

Without cleaning, these files may:

  • 🚨 Burn internal memory (up to 500 MB-1 GB in a few months of active use).
  • πŸ” Contain personal data: file paths, process names, geolocated log fragments.
  • ⚠️ Call the lags when filling out the section /data (especially on devices with 64/128 GB memory).

For example, on the Redmi Note 11 Pro+ with MIUI 13, users complained about cyclical reboots due to a crowded /data/log partition. On POCO F4, error logs prevented the update via OTA - the system demanded to vacate space.

⚠️ Attention: Deleting error logs does not correct the cause of the error. If crashes occur regularly (for example, Camera or Google Play crashes), after cleaning the files will appear again, in which case you need to diagnose the system or reset to factory settings.

Method 1: Cleaning through the Memory menu (without root)

The easiest method is to use the built-in MIUI tool to clean up the garbage, which removes some of the logs, but not all of the system dumps.

Instructions:

  1. Open the Settings β†’ Memory.
  2. Click Clean (or Free in new versions of MIUI).
  3. Choose Deep Cleanup and confirm the action.
  4. Go to Files β†’ Other β†’ find the folders log, anr, tombstones and delete them manually.

This method works on all devices, but has limitations:

  • ❌ Doesn't clean core dumps (/data/system/dropbox/).
  • ❌ Requires manual folder search (hidden by default).
  • βœ… Secure and does not require superuser rights.

Enable the display of hidden files in the file manager

Check the vacant space (needs at least 10% of the total)

Close all applications before cleaning

Restart the device after the procedure-->

Method 2: Use of ADB (for power users)

If standard cleaning didn’t work, connect to the device via ADB (Android Debug Bridge), which removes all error logs, including system dumps, but requires a computer and enabled USB debugging.

Step-by-step:

  1. Enable USB Debugging in Settings β†’ About Phone β†’ MIUI version (click 7 times, then go back to Additional Settings β†’ For Developers).
  2. Connect your smartphone to your PC and confirm the debugging permission.
  3. Open the command line (Windows) or terminal (macOS/Linux) and type:
adb shell


su




rm -rf /data/anr/*




rm -rf /data/tombstones/*




rm -rf /data/system/dropbox/*




rm -rf /data/log/*




exit




exit

If the su command doesn't work, you don't have root rights. In this case, use the alternative option without su (it will only delete part of the logs):

adb shell


rm -rf /sdcard/MIUI/debug_log/*




rm -rf /sdcard/log/*




rm -rf /sdcard/tombstones/*




exit

⚠️ Note: Delete files in /data/ without root, it can cause some services to fail (e.g. Google Play Services.

What if the ADB can’t see the device?
1.Install the latest Xiaomi drivers USB Drivers from the official website. 2. Check if File Transfer is enabled (MTP) 3. Try another one. USB-cable (preferably original). 4. In the Developer Settings, turn off and turn on Debugging again. USB. 5.Reboot your PC and smartphone.

Method 3: Reset to factory settings (radical method)

If error logs take up a critical amount of space or the device is unstable, the only guaranteed way to delete them is to completely reset, which erases all data, including the system partitions where the dumps are stored.

How to reset:

  1. Create a backup of important data (photos, contacts, messages).
  2. Go to Settings β†’ About the phone β†’ Reset settings.
  3. Choose to erase all data and confirm the action.
  4. After the reboot, the device will be as new as it is – without logs and user files.

Advantages and disadvantages of the method:

PlusesCons
Deletes all error logs, including hidden system logsWipes all user data (photos, apps, settings)
Fixes many software failuresIt takes time to reset the device.
It works on all models Xiaomi, Redmi, POCOIt does not help if errors are caused by hardware problems.

πŸ’‘

Before resetting, write down your device's IMEI (type *#06# in the dialer). In rare cases, after a hard reset, you may need to restore the IMEI through an engineering menu.

Method 4: Using Custom Recovery (TWRP)

For users with an unlocked bootloader and TWRP installed, an advanced method of cleaning logs through a recovery menu is available, which allows you to selectively delete system files without completely resetting.

Instructions:

  1. Turn off the device and press Volume up + Power to log into TWRP.
  2. Go to Advanced β†’ File Manager.
  3. Find and delete the following folders: /data/anr /data/tombstones /data/system/dropbox /data/log

Reboot β†’ System

Warnings:

  • ⚠️ Delete the wrong files in TWRP It can cause a blink (inoperability) of the device.
  • ⚠️ Without backup, data recovery will not be possible.
  • βœ… The method works even if the system does not boot (for example, due to critical errors).

Cleaning through Memory

ADB-team

Reset to factory settings

TWRP

None of the above.-->

Method 5: Disabling the collection of error logs (prevention)

To prevent the accumulation of new logs, you can disable some of the system services responsible for collecting them, which will not delete existing files, but will reduce their growth.

How to turn it off:

  1. Activate Developer Mode (as in Method 2).
  2. Go to Settings β†’ Additional settings β†’ For developers.
  3. Disable the following options: MIUI Error Report Automatically Collect USB Debugging Reports (if not used)

Reset the device.

Limitations of the method:

  • ❌ It does not work for some models with MIUI 14 (like Xiaomi 13 Ultra) where options are hidden.
  • ❌ It can interfere with certain functions (e.g. Game Turbo or Second Space).
  • βœ… Reduces processor load and reduces battery consumption.

πŸ’‘

Disabling log collection does not affect the warranty, but it can complicate the diagnosis of problems when contacting the Xiaomi service center.

Frequent Mistakes and How to Avoid Them

When cleaning logs, users often face the following problems:

  1. ADB can't see the device: πŸ”Œ Check the cable (use the original USB Type C). πŸ–₯️ Install Xiaomi and Google drivers USB Drivers. πŸ”„ Restart your PC and smartphone.
  2. Lack of rights to delete files: πŸ”“ Unlock the bootloader and get root (instructions for Xiaomi are available on the site). 4PDA). πŸ“± Use it. TWRP instead ADB.
  3. After cleaning, the logs appear again: πŸ› οΈ This means that there is an unresolved problem in the system (for example, a firmware Conflict or a hardware defect). πŸ” Check the stability of the operation after disabling the Error Reports (see Method 5).

If none of the methods worked, and the device continues to "spray" errors - contact the service center.

  • πŸ”‹ Flash memory failure (especially on older Redmi models) 4X, Redmi Note 5).
  • πŸ€– Firmware damage after failed update.
  • πŸ”Œ Problems with the motherboard (for example, after a fall or moisture hit).

FAQ: Answers to Frequent Questions

Can I delete the error logs without a computer?
Yes, but with limitations. Through the Memory menu (see Method 1), you will only delete a portion of the logs. To clean it completely, you need ADB, TWRP or root.
Why do errors come back after deleting logs?
This means that there is an unresolved problem in the system, such as firmware conflict (try updating MIUI through Settings β†’ System Update), incompatible application (check the logs in Google Play Console if you are a developer), hardware malfunction (for example, poor contact of the camera plume on Xiaomi 11T Pro).
Is it safe to delete /data/log folder?
Yes, but with reservations: βœ… The folder contains only logs – their removal will not harm the system. ⚠️ If you delete files in /data/data/ (where the application data is stored, this will cause failures. πŸ”„ After cleaning, restart the device.
How to check how much space the error logs take up?
Use a root-enabled file manager (e.g. Solid Explorer or FX File Explorer): Go to /data/. Find anr, tombstones, log. See their size in properties. Without root, these folders will not be available.
Can I turn off the error logs forever?
Technically, yes, but it's not recommended. Logs help diagnose problems. If you turn them off completely (e.g., by deleting /system/bin/logcat files), you can't: Get help from a service center (without logs, it's hard to determine the cause of a crash); track bugs in your applications (if you're a developer); use some MIUI features (e.g., Game Turbo or Second Space).