Selling Xiaomi, repairing it, or just want to get rid of sensitive information? Regular file deletion or even factory resetting is not enough β data can be restored using special programs. In this article, we will discuss 5 ways to completely delete data from Redmi, POCO and other Xiaomi phones, including methods for locked devices and phones with damaged screens.
Weβll look at both software methods (via menus, fastboot, Mi Flash Tool) and hardware, from formatting internal memory to physically destroying the chip. Special attention will be paid to the unique feature of Xiaomi smartphones: even after resetting through settings, some of the data remains in the /data/media/0 section, which is not cleaned by standard methods, you will learn how to circumvent this limitation and guaranteed to delete everything, including photos, messages and application data.
1. Preparation for data deletion: what to do before resetting
Before you start cleaning, follow a few critical steps, and if you skip them, you risk losing access to your Mi Account or losing your backups.
Untie the device from your Xiaomi account. Once reset, the phone may require you to enter a login and password from the last associated account, as part of the protection against theft.
- π Go to Settings. β Xiaomi account β Delete your account (password required).
- π± If your phone is already locked, use the web version of Mi Account to remotely shut down your device.
- π Enable two-factor authentication in your account β this will protect it from hacking after resetting.
Keep backups. Even if you're planning to sell your phone, copy important data:
- π Use the settings. β Additionally. β Backup and reset β Local backup to create an archive.
- βοΈ Upload photos to Google Photos or Mi Cloud (but remember that after deleting your account, your access to the cloud will be restricted).
- π± Move your contacts to a Google Account or export them to a.vcf file.
π‘
If the phone is not turned on, remove the memory card and SIM-Card β they may contain data that will not be deleted when reset.
Check the battery status. If the phone is under 50%, connect it to charge. Interrupting the discharge process due to discharge can lead to a device blink (completely inoperable), especially with methods using fastboot or Mi Flash Tool.
2. Method 1: Reset via the settings menu (for working phones)
The easiest method, but it doesn't guarantee complete deletion of data, is if the phone turns on, the screen is working, and you know the unlock password.
Instructions:
- Open Settings β About Phone β All settings (or Settings β Additional β Restore and Reset on older versions of MIUI).
- Select Resetting (or Resetting to factory settings).
- Check the box to clear internal memory (if there is such a item).
- Confirm the action by entering a pattern lock or PIN-code.
- Wait for the reboot (it will take 5-15 minutes).
What's left after this dump?
- πΈ Miniature photos in the folder DCIM/.thumbnails.
- π Fragments of these applications in /data/data/ (You can recover with Autopsy or Scalpel).
- π Logs of system in /data/log/ (contain information about calls, SMS, geolocation).
Delete your Xiaomi account|Keep backup copies|Charge the phone. >50%|Disable Find My Device|Delete memory cards-->
To increase the chances of complete deletion, fill your phoneβs memory with junk data after resetting:
- Download several large files (for example, movies in 4K).
- Install and remove some heavy games (such as Genshin Impact or Call of Duty Mobile).
- Repeat the reset again.
Why is double reset more effective?
3. Method 2: Reset via Recovery Mode (if the phone is not turned on)
If Xiaomi doesnβt boot or hangs on the logo, use Restore Mode, which works even when the screen is damaged (if you can connect the phone to your computer to control it via ADB).
How to log in to Recovery Mode:
- π Turn off the phone (press the power button for 10-15 seconds).
- π Hold the Loud up. + Power and hold for 5-10 seconds until the Mi logo appears.
- π± Release the buttons and you will see a menu in English or Chinese.
Resetting instructions:
- Select Wipe Data (or Chinese firmware) using volume buttons.
- Confirm the choice of the power button.
- Select Wipe All Data (complete cleanup).
- Confirm the action (you may need to enter a password if you have enabled Mi Account).
- Once completed, select Reboot to reboot.
Limitations of the method:
- β οΈ It doesnβt work if Recovery Mode is blocked by a password and you donβt remember it.
- β οΈ On some models (Redmi Note) 8 Pro, POCO X3) Recovery reset does not affect the section /data/media/0.
π‘
If the phone doesnβt respond to buttons, try connecting it to your PC and use the adb reboot recovery command to log in to Recovery Mode.
For models with locked Recovery (for example, Xiaomi 12T or Redmi K50) you will need to use fastboot or Mi Flash Tool (see the following sections).
Method 3: Complete Fastboot Cleanup (for advanced users)
The fastboot method allows you to completely re-mark the internal memory, which makes data recovery impossible, suitable for phones with an unlocked bootloader.
What you need:
- π₯οΈ Computer with installed ADB and Fastboot.
- π Cable USB Type-C (preferably original).
- π Unlocked bootloader (if not, see the instructions below).
Step-by-step:
- Turn off your phone and enter fastboot mode: (a) Press Volume Down + Power for 5-10 seconds. (b) Connect your phone to your PC.
- Open the command prompt (cmd) in the folder with fastboot and check the connection: fastboot devices must display the serial number of the device.
- Run the full cleanup: fastboot erase boot fastboot erase system fastboot erase userdata fastboot erase metadata fastboot erase frp fastboot erase misc
- Remark memory (optional, but recommended): fastboot format:ext4 userdata fastboot format:ext4 system
- Reboot the phone: fastboot reboot
Warnings:
β οΈ Note: The fastboot erase and fastboot format commands will irreversibly delete all data, including firmware, and once executed, the phone will not turn on until the firmware is re-exploited via the Mi Flash Tool.
β οΈ Note: On some models (POCO F3, Redmi Note 10 Pro: Format commands can cause error FAILED (remote:'Not allowed in Lock State'.This requires unlocking the bootloader.
How to unlock the bootloader on Xiaomi:
- Apply for unlocking via Xiaomiβs official website (Mi Account required).
- Download the Mi Unlock Tool and connect your phone in fastboot mode.
- Follow the instructions (you may need to wait 7-15 days for new accounts).
5. Method 4: Firmware via Mi Flash Tool (guaranteed removal)
The most reliable way is to completely flash your phone using the official Mi Flash Tool.
- π§Ή Remove all memory parts, including hidden memory.
- π Installs clean firmware without traces of old data.
- π Bypasses the lock Mi Account (if stitched with clean all).
What you need:
- π₯οΈ Windows computer (7/10/11).
- π₯ Fastboot firmware ROM For your model (download from the official website).
- π οΈ The Mi Flash Tool.
- π Unlocked bootloader (see previous section).
Instructions:
- Unpack the firmware archive into a folder without Cyrillic characters (e.g., C:\Xiaomi\ROM).
- Install the Mi Flash Tool and drivers (if the phone is not identified, use Mi Phone Manager to install them).
- Turn off your phone and log in to fastboot (Loudness Down + Power).
- Connect your phone to your PC and start the Mi Flash Tool.
- In the program: Press Select and point the way to the firmware folder. Select clean all mode. Press Flash and wait for completion (10-20 minutes).
After successful firmware, the phone will restart in clean condition.
Table: Firmware modes in Mi Flash Tool
| Regime. | Description | Deleting data? | Is it suitable for unlocking? |
|---|---|---|---|
| clean all | Complete cleaning of all sections | β Yes. | β Yes. |
| clean all and lock | Cleaning + Locking of the loader | β Yes. | β No (locks the bootloader) |
| save user data | Firmware without data cleaning | β No. | β No. |
Frequent mistakes and their solutions:
- π« ERROR: Flash is not done β Check the cable connection or try another one. USB-port.
- π« Anti-rollback check error β Download a newer version of the firmware.
- π« Phone's not being determined. β Install drivers manually through Device Manager.
Method 5: Physical destruction of data (for paranoids)
If you sell a phone with sensitive information (such as corporate data or personal photos), even software methods may not provide a 100% guarantee, in which case consider the physical destruction of the drive.
How is the memory in Xiaomi smartphones:
- π± Most models use eMMC or UFS-smear-smeared.
- π§ Xiaomi phones (except flagships) usually do not have removable SSD, Like a PC, memory is integrated into a chip.
- π¬ Data is stored in microscopic cells that can only be physically destroyed.
Methods of physical destruction:
- π₯ Overheating: Disassemble the phone and heat the motherboard with a soldering hairdryer to 300Β°C in 5-10 minutes, it'll destroy the memory structure.
- π₯ Mechanical damage: Drill a hole in a memory chip (usually marked as an eMMC or a memory chip) UFS board-board).
- π§² Strong magnetic field: Use a neodymium magnet (from 10,000 Gauss) to destroy data (less reliable than the first two methods).
- π§ͺ Chemical exposure: Load the board in nitric acid for 10-15 minutes (dangerous, requires protection!).
Warning:
β οΈ Attention: Physical destruction will render the phone unusable. Use these methods only if you are going to dispose of the device. There are only 1-4 ways to sell or transfer to another person.
If you are not sure about your disassembly skills, contact the service center with a request to dismantle the memory chip β it will cost less than buying a new phone after a failed repair.
7.Result verification: how to make sure data is deleted
Even after a reset or firmware, the data can be stored, and here's how to check how clean your phone is:
Methods of verification:
- π Manual inspection: Connect your phone to your PC and check folders DCIM, Downloads, WhatsApp (if they are empty, thatβs a good sign).
- π οΈ Use DiskDigger or Recuva to scan memory for recoverable files.
- π± Check through ADB: Follow the command: adb shell ls /data/data/ If the folder is empty, the application data is deleted.
Signs of incomplete removal:
- π Folders with old app names (e.g. com.whatsapp or com.facebook.orca).
- π· Photo miniatures in hidden folders (.thumbnails,.cache).
- π Logs of calls in /data/com.android.providers.contacts/databases.
If you find traces of data, repeat the cleanup using fastboot or Mi Flash Tool, selecting clean all mode.