How to erase all data from Xiaomi’s Android: The Complete 2026 Guide

Why simple file removal doesn’t work

You decide to sell or give up your Xiaomi, but just delete photos and apps is not enough. Even after formatting through the file manager, data can be restored using special programs, this is due to the way the ext4 file system (or F2FS in new models) works: when you delete a file, only the link to it in the placement table is erased, and the data blocks themselves remain on the disk until you overwrite it.

Smartphone manufacturers, including Xiaomi, are implementing several levels of cleaning:

Logical Deletion (via File Manager) – Files remain recoverable.

Recovery Wipe Data – Rewrites key areas, but does not guarantee 100% cleanup.

Full encryption + reset is the most reliable method for MIUI 12+, as the encryption keys are erased along with the data.

If you are transferring your phone to third parties, use the methods in this article – they take into account the features of MIUI firmware and Qualcomm/Snapdragon or Mediatek hardware encryption.

Method 1: Factory reset via MIUI settings

The simplest method, which does not require additional tools, is suitable for all Xiaomi, Redmi and POCO models on MIUI 10-14. Importantly, unplug your Mi Account before reset, otherwise after rebooting the phone will require entering the username / password of the previous owner (Mi Cloud Lock).

Instructions:

  • πŸ“± Open the Settings. β†’ The phone. β†’ Resetting settings.
  • πŸ”„ Choose to Erase All Data (not to be confused with Settings Reset – these are different options!).
  • πŸ” Enter a pattern lock or PIN-code.
  • ⏳ Confirm the action and wait for the reboot (it will take 5-15 minutes).

β˜‘οΈ What to check before resetting through settings

Done: 0 / 5

⚠️ Attention: On models with MIUI 12.5+ and Snapdragon chipset 8 Gen 1/2 (for example, Xiaomi 12 Pro, 13 Ultra) after reset may require re-activation of Bootloader Unlock if it was previously unlocked.This is due to Xiaomi's security policy against unauthorized access.

Method 2: Hard Reset with Recovery Mode

If the phone is not turned on or locked, use Recovery mode.This method bypasses the screen lock, but does not remove the binding to the Mi Account! On new models (Xiaomi 14, Redmi Note 13 Pro+), Recovery can request a password from the Mi Account even for reset.

How to get in to Recovery:

  1. Turn off the phone.
  2. Press the Power button + Volume up for 10-15 seconds until the Mi logo appears.
  3. In the Recovery menu, select the language (if available) then:
Wipe Data β†’ Wipe All Data β†’ Confirm

πŸ”§ On some firmware (Global) ROM) The path may be different: Wipe & Reset β†’ Erase All Data.

What if Recovery asks for a password?
If you select Wipe Data and request a password from Mi Account, it means that the phone has activated the Find My Device function, in which case the reset is possible only after entering the account data or through the Fastboot method (see below).
Xiaomi modelCombination of buttons for RecoveryDo I need a Mi Account password?
Redmi Note 10/11/12Food + Volume upYes, if you have Find My Device enabled
Xiaomi 11T/12/13Food + Volume upYes (on Global ROM)
POCO F3/F4/F5Food + Volume upNo (on POCO Launcher)
Xiaomi Pad 5/6Power + Volume up + DownYes.

Method 3: Complete Fastboot Cleanup (for Advanced)

The method for users familiar with ADB and Fastboot. allows you to erase all partitions, including userdata, cache and metadata, which ensures that data recovery is impossible. Requires an unlocked bootloader (on new Xiaomi models, this takes up to 7 days to wait for confirmation from Mi Unlock servers).

Instructions:

  1. Install Platform Tools from Google.
  2. Turn the phone into Fastboot mode: (a) Turn off the device. (b) Press Power + Volume down.
  3. Connect to your PC and execute commands: fastboot devices fastboot erase userdata fastboot erase cache fastboot erase metadata fastboot reboot

After the fastboot erase userdata command, all data (including internal memory) will be permanently deleted, a method that bypasses Mi Account protection but requires unlocking the bootloader.

πŸ“Š Have you ever unlocked a bootloader on Xiaomi?
Yeah, for custom firmware.
Yeah, for root rights.
No, I haven't.
I don't know what it is.

Method 4: Encryption + Reset (for MIUI 12+)

Since MIUI 12, Xiaomi has implemented File-Based Encryption (FBE)-based hardware encryption, which means that even after resetting, the data remains encrypted with an old key that is erased by Wipe Data.

  1. Enable encryption (if disabled): Settings β†’ Additional β†’ Encryption and credentials β†’ Encrypt your phone The process will take 30-60 minutes.
  2. Perform reset via Settings β†’ Reset settings β†’ Erase all data.

⚠️ Note: On models with Mediatek Helio G96 (Redmi Note 11, POCO M4 Pro) encryption can slow down the phone by 10 to 15 percent. Once reset, the encryption is automatically disabled.

Method 5: Using MIUI Cleaner (to remove residues)

If you're not selling a phone, but you just want to make room, use the built-in MIUI Cleaner.

  • πŸ—‘οΈ Application cache and systems
  • πŸ“ Residual files after uninstallation
  • πŸ” Duplicate photos and videos
  • πŸ“₯ Downloads and temporary files

How to start:

  1. Open the Security app (shield icon).
  2. Go to the Cleanup tab.
  3. Click Deep Clean and select file categories.

πŸ’‘

For models with MIUI 14 (for example, Xiaomi 13T) in MIUI Cleaner has the option to Clean large files, which finds video and games with a volume of > 500 MB.

What to do after resetting: inspection and preparation for sale

Even after a successful reset, follow these steps to avoid problems:

  1. Check IMEI: Dial *#06# and compare it to the number on the box. If IMEI resets to 0 or Null, it means damage to the nvram partition (relevant to Mediatek chips).
  2. Make sure Mi Account is untied: After reset, the phone should not require login/password input when first turned on.
  3. Test the basic features: Camera, sensors, Wi-Fi/4G connection.

πŸ“Œ If you are planning to sell your phone, take a screenshot:

  • πŸ“Š Version information MIUI (Settings β†’ The phone).
  • πŸ” Battery state (Battery settings) β†’ Battery β†’ Status).
  • πŸ“‘ Test results IMEI (*#06#).

πŸ’‘

If the phone asks for the previous owner’s account after the reset, it means that Find My Device has not been disabled, in which case only the official Xiaomi service with proof of ownership (check, box, IMEI) will help.

FAQ: Frequent questions about Xiaomi reset

Can I recover data after fastboot erase userdata?
No. The fastboot erase userdata command performs low-level partition formatting, overwriting all blocks with zeros. This is the only method that guarantees 100% deletion without recovery (as opposed to resetting via Recovery or settings).
Why are there still photos in the DCIM folder after the reset?
This is due to a feature of MIUI: some system folders (DCIM, Downloads) may not be cleaned in a standard reset.Use MIUI Cleaner or manually delete files through the file manager after a reset.
How to reset Xiaomi without a password if you have blocked Mi Account?
If the phone is tied to Mi Account and you don’t remember the data, you can officially unlock it only through Xiaomi Service Center with proof of purchase. Unofficial methods (for example, through EDL Mode) require special equipment and can lead to hard-brick (total loss of performance).
Will the Custom Recovery (TWRP) partition reset after Wipe Data?
No, Wipe Data in standard or custom Recovery doesn't affect the recovery partition, but if you run fastboot erase recovery, then TWRP will be deleted and the phone will boot into stock Recovery.
Can you delete data from Xiaomi via PC without Fastboot?
Yes, but only if the phone is debugging. USB (Settings β†’ For developers β†’ Debugging by USB). In this case, you can use ADB The following is the command: Adb shell recovery --wipe_data It’s the equivalent of resetting through Recovery, but without having to log into the menu manually.