Cleaning a Xiaomi smartphone completely isnβt just about removing photos or apps, itβs about getting the device back out of the box, removing all personal data, settings, and even traces of the Mi Account, a procedure that you need before selling, if you have a major system failure, or if you want to get rid of the digital junk that has accumulated over the years.
In this article, we will look at all the ways to completely clean up, from a standard reset via the menu to forced flashing through Fastboot. Particular attention will be paid to untying the Mi Account without a password - this is critical if you forgot the login data or bought a used device with a tied someone else's profile, and you will learn how to clean hidden memory areas that do not affect the usual reset.
The instructions are valid for all Xiaomi, Redmi and POCO models based on MIUI 12-14 and HyperOS, including Xiaomi 13/14 flagships, budget Redmi Note 12 and gaming POCO F5. If your device is locked or does not respond to touch, there is a section at the end of the article with solutions for βbricksβ.
1.Preparation for complete cleaning: what to do before the discharge
Before you click the Reset button, follow the mandatory steps to avoid losing important data and avoiding account problems:
- π± Create a backup. Use the built-in Backup app (Settings) β The phone. β Backups or third-party services like Google Drive. Especially important to save: Contacts (export to.vcf) Photos and videos (copy to PC or cloud) SMS and call logs (applications like.vcf) SMS Backup & Restore Wi-Fi settings and passwords (via Settings) β Passwords)
- π Make sure you know the username/password from Mi Account. After reset, the device may require you to enter the associated account data (protection) FRP). If you forget, restore access to account.xiaomi.com.
- π Charge your phone at least 50%. Interrupting the reset process due to battery discharge can cause you to lose power.
- πΆ Disable all accounts: Google, Mi Account, social networks, this will speed up the process and avoid conflicts when re-authorizing.
If you clean your phone before selling, be sure to untie it from your Mi Account via a website.
- Go to account.xiaomi.com.
- Log in and select the Device Management section.
- Find your smartphone in the list and click Delete Device.
β οΈ Warning: If you don't unplug your Mi Account before a reset, the new owner won't be able to use the phone without your data, in some cases, locking the device 72 hours after the reset.
2. Standard reset via the settings menu
The easiest and safest way is to use the built-in reset function, which is suitable if:
- π± The phone is turned on and reacts to touch.
- π You know the screen unlock password.
- π Want to return factory settings without deleting your Mi Account (the account will remain tied).
Step-by-step:
- Open Settings β About Phone β Reset (on HyperOS: Settings β Memory β Resetting).
- Choose to erase all data (or delete all data and settings).
- Enter the password/pattern lock from the lock screen.
- Confirm the action by clicking Reset Settings.
- Wait for the reboot (it will take 5-15 minutes).
Once the phone is restarted, it will suggest you set it up as new.
- If you did not untie Mi Account before reset, the system will require you to enter a login / password from it.
- If the account has been untied, you can skip authorization and configure the device without binding.
Make sure your phone doesn't require Mi Account| Check camera and speakers | Connect to Wi-Fi and mobile network | Update to the latest version | Restore data from backup (if necessary)
-->
β οΈ Note: Standard reset does not delete data from the partition /sdcard/.miui (hidden settings MIUI) and EEPROM (stored IMEI Use the methods in the following sections to clean the entirety.
3. Hard reset via Recovery Mode (if the phone doesn't turn on)
If your smartphone doesnβt respond to touch, is stuck on the logo or is locked, use Recovery Mode, which works even when your firmware is damaged, but requires physical access to the deviceβs buttons.
Instructions for all Xiaomi/Redmi/POCO models:
- Turn off the phone (press the power button for 10-15 seconds).
- Click the combination: For most models: Power button + Volume up. For older devices (until 2019): Power button + Volume up + Volume down.
Mi Bunny
Use volume buttons for navigation and power button for selection.
Wipe Data β Wipe All Data
Clear All Data
Confirm
Reboot β Reboot to System
If Recovery doesn't have Wipe All Data, you have customized recovery (e.g. TWRP).
- Select Wipe β Advanced Wipe.
- Check the boxes: Dalvik / ART Cache System Data Internal Storage (if you need to erase internal memory)
Swipe to Wipe
| Model | Combination for Recovery | Features |
|---|---|---|
| Xiaomi 13/14, Redmi Note 12 | Food + Volume up | HyperOS may require a charging connection to log into Recovery. |
| POCO F4/F5, Redmi K50 | Food + Volume up | In some Recovery firmware in Chinese, use the power button to select. |
| Xiaomi Mi 9/10/11 | Food + Volume up | Older versions of MIUI may require you to enter a password even in Recovery. |
| Redmi 5/6/7/8 | Food + Volume up + Volume down | On some devices, Recovery only starts after 3-4 attempts. |
What happens if the Recovery Mode does not open?
4. Complete cleaning through Fastboot (for power users)
Fastboot allows you to completely erase all partitions of memory, including hidden MIUI data, which does not remove the standard reset.
- π The phone is blocked by Mi Account and does not accept login data.
- π οΈ Refuse the device from scratch.
- ποΈ You need to remove traces of root rights or custom firmware.
The work will require:
- π» Computer with installed Xiaomi drivers (you can download on the official website).
- π Cable USB Type-C (original, undamaged).
- π οΈ Mi Flash Tool (for firmware) or Platform Tools (for Fastboot commands).
Step-by-step:
- Turn off the phone.
- Press the Power Button + Volume down until the Fastboot logo appears (a robot labeled Fastboot).
- Connect the phone to the PC.
- Open the command prompt (cmd) in the folder with Platform Tools.
- Enter the command to check the connection: fastboot devices If the device is determined (the serial number will appear), continue. If not, install the drivers.
- Run a full cleanup of all sections: fastboot erase boot fastboot erase system fastboot erase userdata fastboot erase cache fastboot erase recovery fastboot erase misc
- For devices with unlocked bootloader, you can additionally clean: fastboot erase persist fastboot erase frp (this will remove the loader). FRP-lockdown and sensor data).
- Reboot the phone: fastboot reboot
β οΈ Attention: fastboot erase commands permanently delete data from specified partitions. If you don't flash the device after that, it won't turn on! Use this method only if you are ready to install a new firmware immediately through the Mi Flash Tool.
π‘
If the phone does not turn on after fastboot erase commands, download the official firmware for your model from the Xiaomi Firmware website and run it through the Mi Flash Tool in Clean All mode.
5. Delete Mi Account without password (bypass FRP)
If you reset your phone without untieing your Mi Account, or if you bought a used device with someone else's account tied, you'll be asked to enter your login/password when you turn on (FRP) several ways:
Method 1: Through EDL (for tech-savvy)
EDL (Emergency Download Mode) allows you to flash the device without any locks.
- Download Fastboot firmware for your model from the Xiaomi Firmware Updater website.
- Unpack the archive and find the file. flash_all_except_storage.bat (or flash_all.bat).
- Turn your phone into EDL mode: Turn off the device. Press Volume up + Volume down and connect the USB cable to your PC. Hold the buttons for 10-15 seconds until the Qualcomm HS-USB QDLoader 9008 appears in Device Manager.
flash_all_except_storage.bat
Wait for the end of the firmware (5-10 minutes).
Method 2: Mi Account Unlock Tool (for older models)
For devices running MIUI 10-12, you can use utilities like Mi Account Remove Tool.
- Download the utility (for example, Mi Flash Unlock or Xiaomi Tool V2).
- Transfer your phone to Fastboot (Power + Volume Down).
- Connect to the PC and launch the utility.
- Select Remove Mi Account or Bypass FRP.
- Follow the instructions of the program (IMEI may be required).
To clean them:
Method 1: TWRP (unlocked bootloader required)
- Install TWRP Recovery for your model (instructions on twrp.me).
- Download to TWRP (Nutrition + Volume Up).
- Go to Advanced β File Manager.
- Delete folders: /sdcard/.miui /data/log /data/vendor/radio
- Go back to the main menu and select Wipe β Format Data (enter yes for confirmation).
- Reset the device.
Method 2: Through ADB (no root rights)
If you donβt have TWRP, but USB debugging is enabled, you can clear the cache via ADB:
- Connect your phone to your PC and allow debugging (Settings β About Phone β MIUI version β press 7 times, then Settings β Additional β For Developers β Debugging over USB).
- Open the command line in the folder with Platform Tools.
- Enter the commands adb shell su rm -rf /sdcard/.miui/* rm -rf /data/log/* sync reboot
To clean the Dalvik cache (accelerates the system after reset):
adb shell
su
rm -rf /data/dalvik-cache/*
reboot| Type of data | Way | Can I remove without a root? | Effects of removal |
|---|---|---|---|
| Cash MIUI | /sdcard/.miui | Yes. | Theme and font settings will be dropped |
| Logs of the system | /data/log | No (needs rut) | Improved productivity, but more difficult to diagnose errors |
| Dalvik cache | /data/dalvik-cache | No (needs rut) | Applications will be reassembled at the first start (may slow down) |
| Radio module settings | /data/vendor/radio | No (needs rut) | Network settings (APN, IMS) can be reset |
7 What to do if the phone does not turn on after cleaning ("brick")
If the phone does not turn on after reset or Fastboot commands (black screen, flashing indicator, vibrating but not loading), then a critical firmware error has occurred.
Option 1: Firmware with the Mi Flash Tool
- Download the Mi Flash Tool from the official website.
- Download Fastboot firmware for your model (for example, tissot_global_images_... For the Redmi Note 7).
- Unpack the firmware in a folder without Cyrillic symbols.
- Transfer your phone to Fastboot (Power + Volume Down).
- Connect to your PC and start the Mi Flash Tool.
- Click Select and point the way to the firmware folder.
- Select Clean All mode (full cleaning + firmware).
- Press Flash and wait until it is finished (5-10 minutes).
Option 2: EDL Recovery (if Fastboot doesn't work)
If the phone is not identified in Fastboot, transfer it to EDL:
- Turn off the device.
- Close the contacts of the testpoint (for each model, look for a scheme on 4PDA).
- Connect the USB cable β Qualcomm HS-USB QDLoader 9008 should appear in the Device Manager.
- Use the Mi Flash Tool or QFil for firmware.
Option 3: Contacting the service centre
If self-recovery did not help, contact the authorized service center Xiaomi. the cost of repair "brick" - from 1500 to 5000 rubles depending on the model.
- π Check or warranty card (if any).
- π Passport (to confirm possession).
- π Charger (for testing).
β οΈ Warning: If the phone has been locked through Find Device, even firmware through the EDL It will not help β you will need official unlock from Xiaomi (cost) ~3,000 rubles.).