How to clean up completely SIM-SMS card on Xiaomi: all working methods

SIM cards in Xiaomi smartphones (including Redmi models and POCO) They're still used not only for calls, but also for texting -- despite the widespread adoption of instant messengers. SIM limited (usually) 30-250 Messages), and when overflowing, you risk losing new SMS or getting an error No space for a new SMS. SIM-In this article, we will discuss all current cleaning methods, including hidden functions. MIUI, Engineering menu commands and workarounds for older models.

It's important to understand that SIM and phone messages are stored separately, and even if you deleted all SMS messages in the Messages app, they could remain on the card itself, especially when it comes to service messages from the operator (balance, notifications) β€” these are often stored by MIUI on SIM, not in internal memory. Below you will find instructions for all firmware versions, including MIUI 14/13 and earlier.

1. Standard method: through the application "Messages"

The most obvious method is to use the built-in Messages app (an envelope icon), but there are nuances: in newer versions of MIUI, the SIM cleaning option may be hidden or not work properly.

  1. Open the Messages app.
  2. Click on the three dots in the upper right corner β†’ Settings.
  3. Select Control. SIM-maps (or settings) SIM older).
  4. Put it on the right one. SIM-map β†’ Delete messages from SIM.
  5. Confirm the action (it may be necessary to enter) PIN-code SIM).

⚠️ Note: If the item Delete messages from SIM No, your version. MIUI It's hiding it. Go to the following ways.

Check your SIM balance (sometimes operators block access with a zero score)

Remember. PIN-code SIM (will require confirmation)

Back up important SMS (through export to phone memory)

Turn off autodelete messages in operator settings-->

In some firmware (e.g., POCO F3 or Redmi Note 10), instead of completely cleaning, only manually deleting each message is available, which is inconvenient if there are hundreds of SIMs on the SIM, in which case use alternative methods from the following sections.

2. through the engineering menu (USSD and MMI codes)

If the standard method didn’t work, you can use hidden commands to work with SIM. These codes are universal for all Xiaomi and most Android devices, but require caution.

Enter the following combinations in the Phone application:

  • πŸ“± ##4636## β†’ Go to Phone Information β†’ choose SIM β†’ Clear the data (not on all models).
  • πŸ”„ *#99# β†’ In the menu, select Management SIM (work MIUI 12 and below).
  • πŸ—‘οΈ ##634# β†’ Delete all messages (camera team, may not work).

Critical information: command #634# on some SIM-cards (for example, MTS or Beeline) does not delete messages, but redirects to a paid service!

Code.DescriptionWorks for MIUI.Risks.
##4636##Engineering menu12-14There may be no cleaning option.
*#99#USSD menuUp to 12.Not all operators.
##634#Operating teamAnybody.Paid services are possible

If none of the code worked, try an alternative method through ADB (described in section 5). Also check if the operator has blocked access to the engineering menu - some providers (e.g. Tele2) restrict such functions.

Standard annex β€œMessages”

Engineering menu(s)

Through the computer (ADB/Python)

Never cleared the SIM.

Another way.-->

3. Use of third-party applications

Google Play has apps that can work with memory SIM-But most of them require root rights or have restrictions, and we tested a few options and we selected the most reliable ones:

  • πŸ“² SIM Card Manager – Shows all messages to SIM, It allows you to selectively remove or all at once. MIUI 14 no root.
  • πŸ” SIM Toolkit is an embedded app on some Xiaomi, but often hidden.To find: go to Settings β†’ Annexes β†’ Show system-based β†’ SIM Toolkit.
  • πŸ› οΈ Root Explorer is for advanced users, and allows you to manually clean files. SIM, requires root.

⚠️ Attention: Apps like SIM card SMS Backup & Restore does not delete messages from SIM β€” They only work with the memory of the phone!

If you decide to use Root Explorer, follow this path:

  1. Open the application and provide root access.
  2. Go to /data/data/com.android.providers.telephony/databases/.
  3. Find the file mmsms.db – it contains information about messages.
  4. Remove it (pre-remove it!).

Then restart the phone. Note that this method clears all messages, including those stored in the device's memory.

4. Cleaning through a computer (ADB and Python)

For users who aren’t afraid of the command line, there’s a way to clean SIM through ADB (Android Debug Bridge), an official tool from Google that doesn’t require root rights, but you need USB debugging enabled and a computer enabled.

Instructions:

  1. Turn on Developer Mode on Xiaomi: go to Settings β†’ About Phone β†’ MIUI version (shoot 7 times).
adb devices


adb shell




content query --uri content://telephony/siminfo




content delete --uri content://sms/ --where "address='SIM'"

The last command deletes all messages associated with the SIM. If you want to clear only specific ones, use filters:

content delete --uri content://sms/ --where "address='SIM' AND date < 1672531200000"

(where 1672531200000 is the timestamp date before which you need to delete messages).

πŸ’‘

If ADB doesn’t see the device, try reinstalling Xiaomi drivers or using a USB 2.0 port (USB 3.0 is sometimes in conflict).

You can use a Python script with a pyscard library to automate the process.

from pyscard.scard import *



hresult, hcontext = SCardEstablishContext(SCARD_SCOPE_USER)




hresult, readers = SCardListReaders(hcontext, [])





for reader in readers:




hresult, hcard = SCardConnect(hcontext, reader, SCARD_SHARE_SHARED, SCARD_PROTOCOL_T0)




# Here is added the logic of cleaning (requires knowledge in working with APDU-commands)




SCardDisconnect(hcard, SCARD_LEAVE_CARD)

⚠️ Attention: Wrong APDU-Teams can damage data SIM, This includes contacts and network settings, and without experience, it's best not to use this method.

5. Resetting settings SIM-maps (extreme method)

If nothing works, you'll have to reset your SIM completely, which is a radical method that will return the card to factory status, but also delete:

  • πŸ“ž All the contacts saved on SIM (if they were there).
  • πŸ“Ά Mobile Internet settings (APN).
  • πŸ” PIN/PUK-Codes (will have to be restored by the operator).

How to reset:

  1. Go to Settings. β†’ SIM-maps and mobile networks.
  2. Choose the right one. SIM β†’ Additional (or Settings) SIM).
  3. Click Reset SIM settings (the name may be different).
  4. Confirm the action and restart the phone.

After the reset, you'll have to:

  • πŸ”„ Restore the Internet settings (APN You can request from the operator or download automatically).
  • πŸ“± Reset the priority of the network (4G/3G/2G).
  • πŸ”’ Enter. PIN-code (if established).
What to do if the Internet is lost after resetting?
If after discharge SIM Mobile Internet is no longer working, check the following points: 1. APN-Settings: Go to Settings β†’ SIM-map β†’ [yours SIM] β†’ Access points (APN) And add your operator's settings manually. For MTS, it's usually Internet.mts.ru, for Beeline, it's Internet.beeline.ru. 2. Network Mode: Make sure that in Settings β†’ The mobile network has been selected for the correct standard (e.g, 4G). 3. Reboot: Sometimes it helps to turn off the phone on 1-2 extraction SIM-map. 4. Call to operator: If nothing helps, call support (number: MTS β€” 0890, Beeline β€” 0611, Megaphone β€” 0500, Television2 β€” 611).

6.Alternative solutions: Message portability and SIM replacement

If the cleaning does not help or SIM-The card is damaged, consider alternative options:

  • πŸ”„ Transfer messages to the phone: In the Messages app, select the desired SMS β†’ Exports β†’ You can save the memory of the device, and then you can safely clean it. SIM.
  • πŸ†• Replacement SIM-Cards: Contact the operator for a new one SIM (All old messages will be lost, but you will get a clean card with full memory.
  • ☁️ Cloud Backup: Use Mi Cloud or Google Drive to Back Up SMS Before Cleaning.

If you frequently experience SIM overflows, set up automatic deletion of old messages:

  1. Open Messages β†’ Settings β†’ More.
  2. Turn on the option to delete old messages.
  3. Set a limit (e.g., 100 messages).

Xiaomi models on MIUI 14 also have a Smart Cleanup feature that automatically removes service SMS from the operator over 30 days.

πŸ’‘

If you SIM-A card older than 5 years old may have been clogged with system data, and even a complete cleanup won’t help, requiring a new card to be replaced (e.g., nano-SIM or eSIM).

FAQ: Frequent questions about cleaning up the SIM on Xiaomi

πŸ”Ή Why do messages appear again after cleaning up?
This is due to cloud sync or auto-restore from backup.To avoid: Turn off SMS sync in Settings β†’ Accounts β†’ Mi Cloud. Before cleaning, delete all backups of messages in Settings β†’ System β†’ Backup.
πŸ”Ή Can we clean it? SIM no-noncontact?
Yes, if the contacts are not saved on SIM, but in a Google or Mi Account. Check: Open Contacts β†’ Settings β†’ Import / Export. If the contacts are stored on SIM, export them to the phone's memory before cleaning.
πŸ”Ή Why is it new? SIM There's not much room for texting?
Modern nano-SIM and eSIM often have reduced memory for SMS (sometimes just 20-30 messages).This is due to optimization for 4G/5G. Solutions: Use messengers (WhatsApp, Telegram) instead of SMS. Set up automatic SMS storage in the phone memory (Message settings β†’ Storage).
πŸ”Ή How to cleanse SIM Xiaomi without a phone (via another device)?summary> If your Xiaomi is broken, but SIM It works. Insert it. SIM to another phone (e.g. Samsung or iPhone) Use the standard Clean Messages app. For iPhone: Settings β†’ Communications β†’ SIM-map β†’ Delete everything if the other phone doesn't see the message SIM β€” It is stored in Xiaomi memory, not on a map.
πŸ”Ή Is it dangerous to clean? SIM through the engineering menu?
By themselves, commands ##4636## or #634# do not damage the SIM, but: Unintended actions (such as changing Radio Information settings) can lead to network loss. On some MIUI firmware, the engineering menu is blocked - opening it can cause a reset.