By erasing all Xiaomi data, you don't just free up space -- you protect personal information from being restored by third parties. But a standard reset through the settings menu often leaves "traces": cache photos, app logs, or even Mi Account backups. This article will help delete everything, including service sections and MIUI data, that aren't cleared in a normal reset.
Weβll look at the methods for different scenarios, from fast phone preparation to sale to deep formatting when sensitive data leaks. Importantly, the procedures for the Redmi Note 12 and Xiaomi 13 Ultra will differ due to different versions of MIUI and memory types (UFS 2.2 vs UFS 3.1). If you plan to sell or transfer a device, pay attention to the section on data recovery protection.
Preparing for complete deletion of data
Before you wipe everything off Xiaomi, follow 3 critical steps:
- π Unplug Mi Account. Without this, after resetting, the phone will require you to enter your old account (Factory Reset Protection). β Xiaomi account β Get out.
- π± Delete. SIM-map SD-Map. External media may still contain copies of files (e.g. WhatsApp or Google Photo backups).
- π Charge the phone to at least 60%. interruption of the reset process due to battery discharge can lead to a knock (inoperability) of the device.
If you are using a POCO F5 or newer model with MIUI 14+, check the OEM Unlock status in Settings β About Phone β MIUI version (7 times click on version, then return to Additional β For developers). If the option is disabled, unlock it in advance - this will be required for methods with Fastboot.
Method 1: Standard Resetting through Settings
The easiest way is to use the built-in reset feature, which is suitable for most Redmi and Mi users, but does not guarantee 100% deletion of data (snippets remain in the cache and userdata sections).
- Open Settings β About the phone β Reset settings.
- Choose to Erase All Data (not to be confused with Settings Reset β it only removes settings, not files!).
- Enter. PIN-code or pattern lock, if requested.
- Confirm the action with the Remove Everything button.
It takes 5-15 minutes, and then you restart it, and it goes back to the box state, but:
What happens after a standard reset?
For models with MIUI 13 and later (for example, Xiaomi 12T or Redmi K50), an additional step of checking the account after the reset is added. If you forget the data from Mi Account, you will have to use the Fastboot method.
Method 2: Full formatting via Fastboot
This method removes all partitions, including service partitions (system, vendor, userdata). ADB/Fastboot It is suitable for Xiaomi based on Qualcomm Snapdragon (for example, POCO X5 Pro, Redmi Note 11 Pro+).
Install Platform Tools from Google| Enable USB Debugging in Developer Settings |Unlock bootloader via Mi Unlock Tool | Download firmware for your model with Xiaomi Firmware Updater
-->
Instructions:
- Connect your phone to your PC in Fastboot mode (turn off the device, then press Volume Down + Power before the Fastboot logo appears).
- Open the command line in the folder with platform-tools and execute: fastboot devices Make sure that the device is determined (serial number should appear).
- Enter the command to completely erase: fastboot erase userdata fastboot erase cache fastboot format:ext4 userdata fastboot format:ext4 cache For models with dynamic partitions (Android 10+) add: fastboot wipe-super super
- Fastboot flash boot boot.img fastboot flash system.img fastboot flash vendor.img (replace file names with current ones from your firmware).
π‘
If the phone doesn't turn on after formatting, try flashing persist.img from stock firmware. This section stores data on the screen and camera modules calibration, and damage to it leads to a "black screen."
β οΈ Note: On some models (e.g. Xiaomi Mi 11), the fastboot erase userdata command may lead to an error. FAILED (remote: 'Not allowed in Lock State'.This requires pre-unlocking the bootloader via the Mi Unlock Tool.
Method 3: Deep Formatting with TWRP
TWRPβs cadaver retractor allows for low-level data erasure, including internal storage, which is more efficient than standard reset, but requires a TWRP installed and unlocked bootloader, suitable for the POCO F3, Redmi Note 10 Pro and other popular models.
Instructions:
- Install TWRP for your model (see instructions on XDA Developers).
- Boot to TWRP (Put Volume Up + Power on the phone off).
- Go to the Wipe section β Format Data.
- Enter yes to confirm (this will delete everything, including files in /sdcard).
- Go back to the main menu and select Reboot β System.
After formatting via TWRP:
- π The internal memory will be formatted into F2FS or ext4 (firmware-dependent).
- π Data and cache sections will be completely overwritten with zeros (if the Format Data option is selected).
- β οΈ Note: On some devices (e.g. Xiaomi Mi) A3) formatting TWRP It can damage the metadata partition, which will lead to a reboot cycle, in which case you will need to run the firmware. MIUI via Fastboot.
Method 4: Protection against data recovery
Even after full formatting, data can be recovered using specialized software (such as Dr.Fone or EaseUS MobiSaver).
- Record random data on top of deleted files: π± Install Secure Erase from Google Play. π Select DoD mode. 5220.22-M (3 random data passes). β³ Wait until it is completed (may take several hours).
Encryption before reset
adb shell sm set-force-encrypt trueAfter that, perform a standard reset - the data will be encrypted and unavailable for recovery.
For maximum protection on models with UFS-Memory (e.g. Xiaomi 13 Pro) use the command:
fastboot erase --secure userdataIt fills the userdata partition with zeros, making file recovery impossible.
π‘
The only reliable way to protect against recovery is by combining formatting via Fastboot + recording random data, and standard resetting via settings leaves up to 30% of the data available for recovery.
Method 5: Recovery after a failed reset
If after trying to erase the data, the phone stopped turning on ("brick"), follow this instruction:
| Symptoms. | Possible cause | Decision |
|---|---|---|
| Black screen, no response to buttons | The boot or dtbo section is damaged | Switch to stock boot.img via Fastboot |
| Hanging on the MI logo | Error in the system or vendor section | Run fastboot flash system.img |
| Cyclical reboot | Metadata (on Android 12+) is damaged | Switch super.img with dynamic partitions |
| No Command error in the RecavΓ©rie | Missing or damaged recovery.img | Install stock recavator through Fastboot |
Recovery will require:
- Download stock firmware for your model from the official Xiaomi or Xiaomi Firmware Updater website.
- Unpack the archive and launch the script flash_all.bat (for Windows) or manually flash each partition through Fastboot commands.
- If the device is not defined in Fastboot, use EDL-Download emergency mode with the Mi Flash Tool.
For devices with MIUI Global Stable (e.g. Xiaomi 11 Lite NE) after reset, you may need to re-activate the Mi Account even if it was untied.
- Connect to Wi-Fi.
- At the welcome stage, click Skip (if the option is available).
- If you need to enter an account, use the Fastboot bypass (see Method 2).