Have you bought a used Xiaomi smartphone, received a device from a friend, or found files from another device in your phoneβs memory? Xiaomi smartphones can still have traces of previous devices: backups, app cache, account data, or even hidden folders with files, a situation that not only takes up precious space, but also poses privacy risks.
Unlike standard file removal through a conductor, complete cleaning requires a comprehensive approach. In this article, we will discuss 5 proven ways to remove from the phone data of another Xiaomi - from manual cleaning to reset to factory settings. You will also learn which files can be safely deleted and which should not be touched so as not to disrupt the system.
Special attention will be paid to hidden folders MIUI, cache Mi Account and backups, which often go unnoticed. All instructions are relevant for devices on MIUI 12-14 and HyperOS, including the Redmi models, POCO and flagship Xiaomi 13/14 series.
1. Search and delete files of the previous device manually
Start by checking the obvious storage locations, and even after resetting, files from Download, DCIM, or MIUI folders can still be in memory.
- π Open the File Manager (File Manager) application) β Go to the Device section.
- π In the search bar, enter the folder names: Backup, MIUI, Xiaomi or the name of the previous owner, if known).
- ποΈ Delete the folders you find with backups (.bak,.mbk) and temporary files (.tmp).
- πΈ Check the folder. DCIM/.thumbnails β Here you can store miniatures of photos from another device.
Note the MIUI/backup/AllBackup folder, where MIUI automatically backs up applications and settings, which can weigh several gigabytes, but you need to delete them carefully:
β οΈ Attention: Do not delete the folder MIUI/system β It contains critical files for the firmware to work. MIUI/extra, unless they are sure of their appointment.
For convenience, use file sorting by date of creation. Files created before your first phone setup are likely to belong to the previous device. To see hidden folders, turn on the display of hidden files in the Explorer settings (Settings β Show hidden files).
π‘
If you have photos or videos with geotags in your phone's memory, check them through the Gallery app. Click on the file β Details β see the date of the shooting and location. This will help identify other people's media files.
2. Clearing the cache and data of applications associated with the Mi Account
Even after deleting files, the memory may still be the data of the Mi Account account linked to another device, such as the cache of system applications such as Mi Cloud, Mi Share or Security, to clear them:
- Go to Settings β Applications β Application Management.
- In the search bar, type Mi Cloud (or Xiaomi Cloud).
- Click Warehouse β Clear the cache and Clear the data.
- Repeat the steps for applications: Security, Mi Share, Backup.
If you see com.xiaomi.account or com.miui.cloudservice in the list of applications, these are Mi Account system services. They can't be deleted, but you can reset:
| Annex | Action. | What will be removed |
|---|---|---|
| Mi Cloud | Cache + data cleanup | Local copies of files from the cloud, synchronization settings |
| Security | Clearing the data | Scan logs, antivirus data, check histories |
| Mi Share | Clearing the cache | Temporary data transfer files between devices |
| Backup | Removal of the annex (if possible) | Automatic backup settings |
Critical: If the phone was linked to someone elseβs Mi Account, make sure to log out of the account before clearing these apps (Settings β Xiaomi Account β Sign out). Otherwise, the device may be blocked due to the protection of Mi Cloud.
3. Resetting to factory settings: complete memory cleanup
If manual methods don't work, the most reliable way to remove any traces of another device is hard reset, which erases all data, including:
- π± System and application settings
- π€ Accounts (except Mi Accounts if no exit is made)
- π Files in internal memory (except memory card)
- π Backup data MIUI
Instructions for MIUI and HyperOS:
- Open the Settings. β The phone.
- Tap 7 times on the MIUI version line to activate the developer mode (if not already activated).
- Return to Settings β Additional β Backup and Reset.
- Select Resetting β Erase all data.
- Enter a password (if required) and confirm the action.
β οΈ Note: On HyperOS devices, the path may be different: Settings β Memory. β Data reset. Once reset, the phone will reboot and require initial setup, like after purchase.
If your phone is locked or does not respond to touch, use Recovery mode:
- Turn off the device.
- Press the Power button + Volume up until the Mi logo appears.
- From the Recovery menu, select Wipe Data β Wipe All Data.
- Confirm the action and wait for the completion.
Make a backup copy of your data|Remember passwords from accounts|Make sure the battery is charged >50%|Sign out of your Mi Account (if your phone is not yours)|Delete the memory card (if any)-->
4.Data deletion via ADB: for power users
If standard methods don't work, you can use Android Debug Bridge (ADB) for deep cleaning, which is a good way to remove system files that aren't visible in Explorer.
- π₯οΈ Computer with installed ADB Drivers and Platform Tools.
- π± Initiated debugging mode USB phone-on.
- π Cable USB Type-C (original or quality).
Step-by-step:
- Connect the phone to the PC and allow debugging over USB.
- Open the command line (cmd) in the folder with the platform-tools.
- Enter the command to view the list of devices: Adb devices Make sure your phone appears in the list.
- To delete all data of another user, perform: adb shell pm clear com.xiaomi.account adb shell pm clear com.miui.cloudservice adb shell rm -rf /sdcard/MIUI/backup/* adb shell rm -rf /sdcard/Download/*
These teams will clear:
- π Mi Account Information (if not linked to current account).
- βοΈ Local copies of cloud files.
- π Backup copies MIUI loading.
β οΈ Attention: Rm teams -rf They delete files permanently. Don't use them for folders. /system or /data, If you don't understand the consequences, an error can lead to a device blinking!
What if the ADB canβt see the device?
5. Verification and deletion of data through Mi Cloud
If the previous owner synced the data to Mi Cloud, they could stay in cloud storage tied to the device to delete them:
- Open your Settings β Xiaomi Account β Mi Cloud.
- Check the Photos, Notes, Contacts and Backups sections.
- Delete unnecessary files or turn off sync for specific types of data.
If you see other people's backups:
- π± Go to Mi Cloud. β Backup copies.
- ποΈ Find copies with the name of another device (e.g. Redmi Note 10 if you have Xiaomi 13).
- π« Remove them by clicking on three dots next to the copy β Delete.
If the cloud requires a password from a previous account, reset your phone (Section 3) and create a new Mi Account.This is the only way to untie your device from someone else's cloud.
π‘
Even after a phone is reset, data in Mi Cloud can be stored for up to 30 days. To delete it permanently, link the phone to a new account and manually clear the cloud.
6. How to avoid the reappearance of other peopleβs data
To prevent files from other Xiaomi devices from appearing in your phoneβs memory in the future, follow these rules:
- π Turn off automatic backup in Settings β Xiaomi account β Mi Cloud β Backup.
- π« Do not connect to other peopleβs Wi-Fi hotspots with a name Xiaomi_XXXX or MiWiFi_XXXX β This can trigger data exchange between devices.
- π΄ Use a separate Mi Account for each device if you have multiple Xiaomi smartphones in your family.
- π Check the folder regularly MIUI/backup availability of new files.
If you frequently transfer files between Xiaomi devices via Mi Share or Quick Share, clear the cache of these apps after each use.
- Open the Settings β Applications β Mi Share.
- Press Warehouse. β Clear the cache.
- Repeat for Quick Share (if any).
We also recommend that you disable Automatic File Download to Mi Cloud if you are not actively using the cloud, which will prevent you from downloading backups from other devices linked to the same account to your phone.