Deleting all messages on Xiaomi smartphones is a challenge that users face for a variety of reasons: from wanting to free up memory to having to sell a device without personal data. However, standard methods through the Messages app often do not allow a massive cleanup of history at a time. In this article, we will examine all possible ways - from built-in functions. MIUI beforehand ADB-commands and third-party utilities.
It is important to understand that โmessagesโ may mean:
- ๐ Notifications โ Alert History from Applications;
Each type requires a different approach. For example, cleaning SMS through a system application will not affect notifications from Viber or Facebook Messenger. We will look at solutions for all cases, including hidden MIUI 14/15 features and bypassing manufacturer restrictions.
1. Delete SMS/MMS through the standard Messages app
The most obvious, but not always effective, way to use the built-in Messages application is to use the interface, which may vary depending on the version of MIUI, but the general logic is maintained:
- Open the Messages app.
- Tap it on three points (โฎ) top-right โ Select Settings.
- Go to Message Management or Message Clearing.
- Select the option to Delete all messages or Mass Delete.
โ ๏ธ Note: In some versions MIUI (for example, MIUI 12.5 for Redmi Note 10) the mass removal option is hidden:
- ๐ Keep your finger on any message. โ Put it all in the box at the top;
- ๐๏ธ Click on the basket icon (confirmation may be required).
If the app doesnโt allow you to delete messages in a packet, try an alternative path through Settings โ Applications โ Messages โ Memory โ Clear data. This will delete ALL message history without the possibility of recovery, including drafts and attachments.
๐ก
Before mass removal, export important items SMS to.xml file via the Messages application settingsยป โ ยซImports/Exportsยป.
2.Resetting notifications and alert history
Notifications from apps (such as Instagram, Gmail or Mi Fit) are stored separately from SMS and are not deleted via the Messages app.
- Go to Settings โ Notifications and Status bar.
- Select Notification History (enable it if disabled).
- Tap it on three points (โฎ) โ Clear everything.
If you donโt have notification history (as is the case with the Poco F3 or Xiaomi 12T), use an alternative method:
adb shell pm clear com.android.providers.telephonyThis command will reset the system notification provider cache. ADB rights are required (see Section 5).
| Type of data | Where they're stored | How to remove |
|---|---|---|
| SMS/MMS | /data/data/com.android.providers.telephony/databases/mmssms.db | Through the โMessagesโ or ADB app |
| Notifications | /data/system/notification_policy.xml | Through settings or resetting the Settings app |
| Messenger chats | Folders /data/data/com.whatsapp/, /data/data/org.telegram.messenger/ | Only through the apps themselves |
What happens if you clear the Messages app data?
3. Mass removal of chats in messengers (WhatsApp, Telegram, etc.)
Messages in third-party messengers (WhatsApp, Telegram, Viber) are stored in their own databases and are not associated with system SMS.
- ๐ฑ Open the app. โ three-point (โฎ) โ Settings โ chat โ Chat history;
- ๐๏ธ Select Clear all chats (delete messages but save media files);
- ๐ For complete removal: Settings โ Memory. โ Memory management โ Clean up.
Telegram
- โ๏ธ Press three lines (โฐ) โ Settings โ Data and memory โ Clear the cache;
- ๐งน To delete chats: hold your finger in the dialogue โ Choose all โ Delete;
- ๐ฅ For a complete reset: Settings โ Additionally. โ Reset all settings (will not affect cloud chats).
โ ๏ธ Note: Telegram messages in secret chats are only deleted manually - they can not be cleaned en masse. WhatsApp backups on Google Drive will save the history even after deleting on the device.
4.Use Safe Mode to remove blocked messages
If messages are not deleted due to MIUI malfunctions or viruses, try Safe Mode, which disables all third-party applications, sometimes bypassing the locks:
- Turn off your smartphone.
- Press the power button before the Xiaomi logo appears, then release and immediately press Volume down.
- Hold on until the Safe Mode sign appears in the lower left corner.
- In Safe Mode, try again to delete messages through the standard application.
If the problem is caused by a virus (e.g., adware that blocks access to SMS), in Safe Mode:
- ๐ก๏ธ Remove suspicious apps through Settings โ Annexes;
- ๐ Check your device with an antivirus (e.g. Malwarebytes);
- ๐ Restart your phone in normal mode.
Disable Wi-Fi and Mobile Data
Charge your phone at least 50%
Remember passwords from accounts (reentry may be required)
Prepare a list of applications to remove (if the cause is a virus)
-->
5. Delete messages via ADB (for advanced users)
If standard methods don't work, you can use Android Debug Bridge (ADB), a low-level device management tool that is suitable for:
- ๐ฑ Delete messages on locked phones (if debugging is enabled) USB);
- ๐ง Cleaning system databases without resetting to factory settings;
- ๐ ๏ธ Correction of errors when MIUI prevents removal SMS.
Instructions:
- Turn on USB Debugging in Settings โ About Phone โ MIUI Version (stick 7 times) โ Additional settings โ For developers.
- Connect the phone to the PC and confirm the trusted device.
- Open the command line (Windows) or terminal (macOS/Linux) and type:
adb devices
adb shell
su
rm /data/data/com.android.providers.telephony/databases/mmssms.db
rebootโ ๏ธ Note: The Rm command permanently deletes the database file SMS. If you need a backup copy, first perform:
adb pull /data/data/com.android.providers.telephony/databases/mmssms.dbTo remove notifications, use:
adb shell pm clear com.android.providers.telephony
adb shell pm clear com.miui.notification๐ก
ADB-Teams can circumvent limitations MIUI, But you need root permissions to access your system folders, and without root, some files can be protected by SELinux.
Full reset of the phone (last option)
If no methods have worked, then you have to do a Hard Reset, which is a factory reset, and it will delete all the data, including:
- ๐ฑ Communications (SMS, MMS, messenger-chat);
- ๐ท Photos, videos and music;
- ๐ Wi-Fi passwords and accounts;
- ๐ฎ Installed applications and their data.
How to perform the reset:
- Make a backup of important data through Settings โ About Phone โ Backup.
- Go to Settings โ Additional settings โ Restore and reset โ Reset settings.
- Choose to erase all data and confirm.
โ ๏ธ Note: Some models (Xiaomi 13 Pro, Redmi) K60) After reset, you may need to enter a password from the Mi Account account associated with the device. If you forget the password, restore it in advance at account.xiaomi.com.
Alternative Recovery Mode Resetting Method:
- Turn off the phone.
- Press Volume Up + Power before the Mi Recovery logo appears.
- Select Wipe Data โ Wipe All Data โ Confirm.
- After reset, select Reboot.
7. Recovery of accidentally deleted messages
If you delete important messages, you can try to restore them, and success depends on whether the data on the device has been overwritten:
Method 1: Through the Google Backup
- ๐ When you initially set up your phone after reset, select Restore from Google Backup;
- ๐ฅ Make sure that the backup is SMS was included in the settings โ Google โ Backup;
- โณ Recovery can take up to 24 hours.
Method 2: With the help of third-party utilities
Programs like Dr.Fone, EaseUS MobiSaver or GT Recovery scan the device's memory for deleted messages.
- Connect the phone to the PC;
- Start the program and select SMS recovery mode;
- Wait for the scan to be completed (may take several hours).
- Select the necessary messages and save them to a file.
โ ๏ธ Warning: The more you use your phone after deleting messages, the lower your chances of recovering them.