How to completely clean up the memory of messages on Xiaomi: all ways

Messages on Xiaomi smartphones (including Redmi and POCO) are often clogged with thousands of SMS, MMS and notifications from banks, social networks and services. Even if you regularly delete dialogs, the system can store hidden copies, app cache Messages and backup files that occupy precious megabytes. In this article, we will examine all possible cleaning methods, from manual removal to hidden MIUI functions that are not written in the official instructions.

Xiaomiโ€™s feature is that the standard Messages app is integrated with the Mi Cloud and can sync data even after visible deletion. For example, when resetting or flashing, โ€œoldโ€ SMS sometimes recover automatically. We will show how to guarantee to erase everything โ€“ including backups and system cache โ€“ and explain why some methods do not work on all firmware (for example, on MIUI 14 and later changed the path to message storage).

1. Manual deletion of messages via the application

The most obvious, but not always effective, way is to clean up directly in the Messages app, which is suitable if you need to delete individual dialogs or folders (such as spam or app notifications).

  • ๐Ÿ“ฑ Do not remove hidden backups that MIUI automatically.
  • ๐Ÿ”„ Does not clear the app cache, which can weigh up to 50-100 MB.
  • โš ๏ธ On some firmware (for example, MIUI 13 Global) no mass removal option.

How to manually delete messages:

  1. Open the Messages app (an envelope icon).
  2. Press and hold your finger on any dialogue, then select the others (check the boxes).
  3. Slip on the basket icon (๐Ÿ—‘๏ธ) top-down.
  4. For complete cleaning, go to โ‹ฎ โ†’ Settings โ†’ Clear all messages.

๐Ÿ’ก

If you don't have a "Clear All" option, try clamping your finger on any dialog and select "Select All" from the top menu. On POCO F5 and the new Redmi Note 12, this bug is fixed in MIUI 14.0.5+.

Important: After manual removal, check the Recycle Bin folder (if you have one in your firmware).In some regional versions of MIUI, messages are first moved there and stored for up to 30 days to clear the Recycle Bin:

  1. Open the messages. โ†’ โ‹ฎ โ†’ Basket.
  2. Click Clean or highlight everything and remove manually.

Clearing the cache of the Messages app

Messages can take from 20 MB to 1 GB (depending on the number of media files in the app). MMS). Cleaning it doesn't remove it by itself. SMS, But it frees up space and speeds up the application, and it's especially relevant for users who often get it. MMS with photos or videos (for example, from banks or instant messengers).

How to clear the cache:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Find Messages in the list (or Messages in English firmware).
  3. Slip the vault. โ†’ Clear the cache.
  4. For complete cleaning, also click Clear Data (โš ๏ธ It'll delete all messages!).
What's a message cache?
Cache is a temporary file that the application saves for quick operation. In the case of SMS/MMS, this includes: - Photo miniatures from MMS - Sync Logs with Mi Cloud - Pre-loaded media files (for example, stickers or animations) - Data on read / unread messages

If the Clear Cache button is inactive, the cache is empty or the app is using dynamic storage (starting with Android 11), in which case only reinstall the app (more on this in the next section).

๐Ÿ“Š How often do you clear the message cache?
Once a month
Only when memory ends
Never.
I don't know what it is.

3. Remove via MIUI Cleaner (built-in utility)

MIUI Cleaner (or Optimization in newer versions) is a standard garbage cleaner on Xiaomi, which can find and delete residual message files that are not visible in the app itself.

  • ๐Ÿ—‘๏ธ Logs of dispatch SMS (files with the.log extension).
  • ๐Ÿ“ Temporary folders from MMS (usually lie /storage/emulated/0/Android/data/com.android.mms).
  • ๐Ÿ”„ Duplicate messages created when synchronized with Mi Cloud.

How to clean with MIUI Cleaner:

  1. Open the Optimization app (icon with broomstick).
  2. Go to the Deep Cleanup tab.
  3. Select the garbage files โ†’ Communications.
  4. Check all the items found and click Clean.

On MIUI 14 and newer paths may differ:

Optimization โ†’ Storage โ†’ Analysis โ†’ Multimedia and Files โ†’ Messages

Backup of important SMS

Close the Messages app in multitasking

Connect your phone to charge (the process can take 5-10 minutes)

Check the space (needs at least 200 MB)

-->

If MIUI Cleaner does not find the message files, try updating the database:

  1. V MIUI Cleaner go to the โ‹ฎ โ†’ Settings.
  2. Put the trash database up to date.
  3. Reset the analysis.

4. Complete data resetting of the "Messages" annex

If the previous methods didn't work, the radical way is to reset the application data, and that will delete:

  • ๐Ÿ“ฉ All right. SMS and MMS (including drafts).
  • ๐Ÿ”ง Application settings (themes, notifications, signals).
  • ๐Ÿ“ฑ Synchronization with Mi Cloud (you will have to reconfigure).

How to reset data:

  1. Go to Settings โ†’ Applications โ†’ Application Management โ†’ Messages.
  2. Press Warehouse. โ†’ Clear the data.
  3. Confirm the action (a warning will pop up about deleting all messages).

๐Ÿ’ก

This method is guaranteed to delete ALL messages, including those that are not displayed in the application interface, and use it if you plan to sell the phone or transfer it to another person.

After reset, the Messages app will return to factory settings, and when it first starts, the system may suggest that you restore messages from the backup (if you have one in the Mi Cloud) to avoid this:

  1. Before resetting, turn off sync: Messages โ†’ โ‹ฎ โ†’ Settings โ†’ Synchronization of messages.
  2. Remove backups to Mi Cloud (more on this in the next section).

5. Delete Message Backups in Mi Cloud

Many users forget that Xiaomi automatically backs up SMS/MMS in the Mi Cloud, and even after cleaning the phone, messages can be restored the next time you log in, so you have to manually delete copies to prevent this from happening.

How to delete backup copies:

  1. Open your Settings โ†’ Xiaomi Account โ†’ Mi Cloud.
  2. Go to Device Backup โ†’ Messages.
  3. Click on the last copy and select Delete.
  4. For complete cleaning, turn off automatic backup of messages.
Type of dataWhere it's storedHow to remove
SMS/MMSLocal database (/data/data/com.android.mms)Data resetting of the annex
Backup copiesMi Cloud (Xiaomi Cloud)Remove manually in cloud settings
Cash and logs./storage/emulated/0/Android/data/com.android.mmsCleaning by MIUI Cleaner or manually
Notifications from annexesSystem folder /data/systemRoot rights required

If you use third-party SMS apps (like Google Messages or Textra), check their cloud reservation settings. For example, in Google Messages, copies are stored in Google Drive and deleted as follows:

  1. Open Google Messages โ†’ โ‹ฎ โ†’ Settings โ†’ Backup.
  2. Click Delete backup copy.

๐Ÿ’ก

Before you delete backups, export important SMS to the file. Use applications like SMS Backup & Restore (available on Google Play).

6. Cleaning through the engineering menu (for experienced users)

On MIUI firmware before version 12.5, there was a hidden way to clean messages through the engineering menu, which allowed you to remove even system SMS (for example, from a carrier) that do not appear in the standard interface, but on new versions this method may not work or require an unlocked bootloader.

How to open the engineering menu:

  1. Open the Phone app.
  2. Enter the code: ##4636###.
  3. Go to Phone Information โ†’ Test menu.
  4. Select SMS Data Cleanup (if the item is missing, the method is not supported).

โš ๏ธ Warning: Incorrect actions in the engineering menu can lead to loss IMEI You can only use this method if you're confident in what you're doing. MIUI 13/14 It is better to use alternative methods.

An alternative way for advanced users to use ADB (Android Debug Bridge), for example, a command to clean the SMS database:

adb shell pm clear com.android.mms

This command is equivalent to an application data reset, but works even if the MIUI interface is blocked.

7. Automatic Message Cleanup (Tunes the Rules)

To avoid manually clearing memory, set up automatic deletion of old SMS. MIUI has a built-in feature that allows you to:

  • ๐Ÿ—“๏ธ Delete messages older 30/60/90 days.
  • ๐Ÿ“ค Clean up SMS from specific senders (e.g. spam).
  • ๐Ÿ”„ Archiving important messages before deletion.

How to set up automatic cleaning:

  1. Open the messages. โ†’ โ‹ฎ โ†’ Settings โ†’ Autocleaning.
  2. Turn on the Automatic Removal Switch.
  3. Select a storage period (recommended 60 days).
  4. Add important contacts (e.g. bank SMS) to the exceptions.

On POCO and some Redmi, this function may be called Storage Management and resides in:

Messages โ†’ โ‹ฎ โ†’ Settings โ†’ Storage โ†’ Autocleaning

If the automatic cleaning is not working, check:

  • ๐Ÿ”‹ Is there enough space on the phone (needs at least 100 MB of free space).
  • ๐Ÿ“ถ Is the phone connected to the Internet (the function requires synchronization with the cloud).
  • ๐Ÿ”„ Is the battery optimization for the Messages app disabled.

Frequently asked questions

Can I recover messages after cleaning?
Yes, but only if: You backed up your phone to Mi Cloud or through third-party applications (e.g. SMS Backup & Restore); You deleted it recently (within 30 days some apps allow you to recover data); You did not completely reset your phone (in this case, recovery is almost impossible); Use: Mi Cloud (if synchronization was enabled); Applications like Dr.Fone or EaseUS MobiSaver (require root rights).
Why do messages appear again after cleaning?
This is because: Sync with Mi Cloud - check your cloud settings and delete backups. Auto-Restores when rebooting (characteristic of a reboot) MIUI 12โ€“13). Hidden folders with messages (for example, /data/data/com.android.mms/app_mms). Solution: Turn off message synchronization in Mi Cloud. ADB for complete cleaning (see section) 6). Check your phone for viruses (some Trojans can be repaired) SMS spam-sending).
How to clean up your messages on Xiaomi without losing important SMS?
Methods: Export to File: Use SMS Backup & Restore to save important messages in.xml or.json. Selective Deletion: Manually delete unnecessary dialogs, leaving important ones (see section) 1). Transfer to the computer: Connect the phone to the PC and copy the folder /storage/emulated/0/Android/data/com.android.mms (need to be debugged USB). For the bank. SMS: Take a photo of the screen with the code or save it in notes. Use special storage applications. OTP (like Authy).
How much space does the message take up on Xiaomi?
The volume depends on the number and type of messages: Data Type Approximate size of 1000 text SMS 1-2 MB 100 MMS with photos of 50-100 MB Cash of the Messages application 20-200 MB Backup to Mi Cloud 10-500 MB (depending on the amount of media) To check the exact size: Go to Settings โ†’ Storage โ†’ Applications. Find Messages and see the space occupied.
Does this work for POCO and Redmi?
Yes, all of the described methods are suitable for: All POCO smartphones (e.g. POCO X5 Pro, POCO F4). Redmi Note linears (including Redmi Note 12, Note 11). Xiaomi flagships (e.g. Xiaomi 13, Xiaomi 12T). Exceptions: POCO with global firmware may not have MIUI Cleaner (replace it with Google Files). On Redmi with custom firmware (e.g. Pixel Experience), use standard Android tools.