How to completely remove the system on the Xiaomi smartphone: all the ways

Resetting the system on Xiaomi smartphones to factory settings is a procedure that almost every user faces. But what if you want to not just return the settings to default, but completely erase the firmware, including system partitions? This is necessary when critical failures occur, preparation for sale, installing custom firmware or fighting viruses that have penetrated system files. Unlike a standard reset via Settings β†’ Phone β†’ Resetting, completely removing the system requires special tools and knowledge.

In this article, we will discuss all the working methods for completely erasing the system on Xiaomi, including official and informal methods, you will learn how to use Fastboot, Recovery and even a physical connection to a PC, as well as the risks that these operations carry for different models (from Redmi Note 10 to Xiaomi 13 Ultra).

When to completely wipe the system on Xiaomi

Complete removal of firmware is an extreme measure, which is resorted to in several cases:

  • πŸ”„ Unremedyable system failures: The phone is constantly restarting, not turning on or emitting errors like bootloop ( looped boot).
  • πŸ›‘οΈ Viruses in system files: if malware has penetrated into the system /system or /vendor, regular reset won't help.
  • πŸ“¦ Preparation for sale: to prevent data recovery through specialized tools (e.g. Chip-Off).
  • πŸ”§ Installation of custom firmware: some ROM (LineageOS or Pixel Experience require a clean installation.
  • πŸ”’ Removal of lockdown MIUI: If the device is blocked by Mi Account and other methods do not work.

Before you start, check if a more gentle method will help:

  • βš™οΈ Reset via Settings: Settings β†’ The phone. β†’ Resetting settings (does not remove system updates).
  • πŸ”„ Reset via Recovery: Press the Power + Volume Up, select Wipe Data (erases user data, but not the system).

⚠️ Warning: Complete system erasure deletes all data without recovery, including IMEI, DRM-Application keys and licenses (such as Netflix or Widevine) L1). On some models (Redmi) 9A, Poco M3) This can lead to loss of network functions (calls, mobile Internet).

Preparing for complete system erasure

Before you start, follow the mandatory steps:

Make a backup copy of the data (photos, contacts, SMS)

Check the battery charge (minimum 60%)

Download the official firmware for your model from [miui.com](https://miui.com)

Install Mi Flash Tool and ADB/Fastboot drivers on PC

Unlock the bootloader (if required)

-->

Special attention is paid to unlocking the bootloader. On new Xiaomi models (released after 2021), without this step, complete system erasure is impossible.

  1. Linking your Mi Account to your device.
  2. Unlock request via Mi Unlock Tool (you can download on the official website).
  3. Expect confirmation from Xiaomi servers (some models, such as the Xiaomi 12T, require a connection to a Chinese server via a VPN).

For Redmi and Poco models older than 2019 (e.g. Redmi Note 7, Poco F1), unlocking is faster β€” sometimes just one confirmation is enough.

Redmi (Series Note, K, A)

Poco (F, X, M)

Xiaomi (11/12/13 series, Mix)

Black Shark

Other-->

The method is suitable for all Xiaomi models, except for devices with a locked bootloader.Uses the official Mi Flash Tool tool and fastboot commands.

Step 1: Installation of drivers and tools

Download and install:

  • πŸ–₯️ Mi Flash Tool (version no lower than 2023.4.1).
  • πŸ”Œ Qualcomm or Mediatek drivers (depending on your smartphone’s processor).
  • πŸ“ Official firmware in.tgz or.zip format for your model (for example, tissot_global_images_V12.5.1.0.RDLMIXM_20210913.0000.00_11.0_global For the Redmi Note 7).

Step 2: Transfer the device to Fastboot mode

Turn off the phone, then press:

  • πŸ”˜ Power button + Volume Down (for most models).
  • πŸ”˜ Power button + Volume Up + Volume Down (for Black Shark).

Connect your smartphone to your PC through USB-cable (preferably original) Android Bootloader Interface should appear in Device Manager.

Step 3: Teams for Complete Erasure

Open the command line (Win + R β†’ cmd) and do:

fastboot devices

(The serial number of your device should be displayed).

To completely erase all sections, enter alternately:

fastboot erase boot


fastboot erase system




fastboot erase userdata




fastboot erase recovery




fastboot erase cache




fastboot erase metadata




fastboot erase misc

For models with a vendor section (e.g. Xiaomi 11T, Redmi K50) add:

fastboot erase vendor

⚠️ Note: On some devices (such as the Redmi Note 10 Pro), erasing the metadata partition may cause loss of the metadata partition. IMEI. If you don’t plan to install a new firmware right away, skip this command.

Step 4: Checking and Installing Clean Firmware

After erasing, the device will not turn on β€” it will be in bootloop state or display the No OS installed error.

  1. Open the Mi Flash Tool.
  2. Select the downloaded firmware (unpack.tgz into the folder).
  3. Press Refresh, then Flash.
  4. Select Clean All (complete flashing) mode.

It takes 5-15 minutes, and when it's done, it automatically reboots to the clean system.

πŸ’‘

Fastboot erasure is the most reliable method, but requires an unlocked bootloader and official firmware, without which the device will become a brick.

Method 2: Erase through TWRP (for advanced users)

If your Xiaomi has a custom TWRP recavator installed, you can wipe the system directly through it.This method is suitable for models with an unlocked bootloader and supported TWRP (for example, Poco X3, Redmi K20 Pro).

Step 1: Installation of TWRP

Download the current version of TWRP for your model from twrp.me. Install via Fastboot:

fastboot flash recovery twrp-3.7.0_12-1-surya.img


fastboot boot twrp-3.7.0_12-1-surya.img

Step 2: Completely erasing sections

On the TWRP menu:

  1. Go to Wipe. β†’ Advanced Wipe.
  2. Check the boxes: πŸ“ Dalvik / ART Cache πŸ–₯️ System πŸ“± Data πŸ”„ Cache πŸ”§ Vendor (if any)

Swipe to Wipe

⚠️ Note: On some devices (Xiaomi Mi) A2, Mi A3) erasure of the vendor section through TWRP This can cause the camera module to be lost. Check compatibility on the forum before the operation. XDA Developers.

Step 3: Installation of a new firmware

After erasing:

  1. Go to Install.
  2. Choose. ZIP-Firmware file (e.g. LineageOS or official) MIUI Fastboot ROM, zip-packed).
  3. Confirm the installation.

Algorithm of action:

  1. Connect your phone to your PC in EDL mode (via cable or contact closure).
  2. In Mi Flash Pro, select firmware and press Flash.
  3. Wait until the process is completed (it can take up to 30 minutes).

⚠️ Attention: Use EDL Without official permission from Xiaomi (for example, through unlicensed accounts) can result in a lockdown. IMEI This will make the device unusable for calls even after recovery.

What to do if EDL is not working?
If the Mi Flash Pro is an error SLA Auth Failed means your account does not have firmware rights through EDL. Solutions: 1. Contact Xiaomi Service Center with proof of purchase. 2. Buy an authorized account (risk of fraud). 3. Use alternative tools like QFil (only for Qualcomm devices), but this may result in loss of the service. DRM-key.

Risks and consequences of complete system erasure

Complete firmware removal is not a safe procedure, and here are the main risks:

Problem.The models on which it is foundHow to avoid
Loss of IMEIRedmi Note 8/9/10, Poco X3Do not erase modem and nvram partitions
Loss of loss DRM-keys (Netflix in the 480p)Xiaomi Mi 11, Mi 10TSave the backup of the drm partition before erasing
Blocking of Mi AccountAll models with Mi AccountUntie the account before erasure
"Brick" (excluded)Devices with locked loaderUnlock the loader in advance
Loss of guaranteeAll models.Do not wipe the system on warranty devices

Some models (Xiaomi 12 Pro, Redmi K40) may require a full erasure of the camera module via QC Tools, otherwise the photos will be green or blurred.

πŸ’‘

Before erasing the system, check if your model has a firmware bekatap with a persist partition. its loss can lead to broken sensors (gyroscope, compass).

Frequent mistakes and their solutions

When you completely erase a system, users often face problems, and here are the most common ways to fix them:

  • 🚫 Fastboot: error: Command failed Reason: Inappropriate version of Mi Flash Tool or drivers Solution: Install drivers manually through Device Manager by selecting Android Bootloader Interface.
  • πŸ”„ The phone is fixated on the logo MI Reason: Incorrectly stitched the boot or dtbo partition. Solution: Repeat the firmware by selecting Clean all and lock mode in the Mi Flash Tool.

If after all the manipulations the phone does not turn on, check:

  • πŸ”‹ Battery Charge (Plug in to Charge for 30 Minutes).
  • πŸ”Œ Cable and port USB (Try another cable or PC).
  • πŸ“± Firmware compatibility (download only official versions for your model).

FAQ: Answers to Frequent Questions

Can I erase the system on Xiaomi without unlocking the bootloader?
No. On all Xiaomi models after 2016, completely erasing the system via Fastboot or TWRP requires an unlocked bootloader. The exception is using EDL mode, but it requires an authorized Xiaomi account or special hardware.
How to return the stock firmware after erasure?
Download the official firmware for your model from miui.com or xiaomifirmwareupdater.com. Then: Unpack the archive with the firmware. Open the Mi Flash Tool, select the firmware folder. Connect the phone in Fastboot mode and press Flash. For models on Mediatek (e.g. Redmi 9A), use the SP Flash Tool.
Why does the phone not see after the system is wiped? SIM-map?
This means that the modem or nvram partitions that are responsible for IMEI are damaged. Solutions: Restore IMEI through the engineering menu (#4636##) or Maui META. Scroll the nvram partition from the backup or official firmware. Some models (Redmi Note 8 Pro) require firmware through EDL.
Can I erase the system on Xiaomi through ADB?
Partially. ADB can erase user data, but complete erasure requires root rights or access to Fastboot. Commands like adb shell dd if=/dev/zero of=/dev/block/mmcblk0 are extremely dangerous and can physically damage memory.
How to check if the system is completely erased?
Connect your phone to your PC in Fastboot mode and execute: fastboot getvar all If you have lines like partition-size:system=0 in the output, then the partition is empty. You can also try to boot into the system - if there is an error No OS installed, the erasure was successful.