How to completely remove the memory of your phone from another Xiaomi device

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:

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. In the search bar, type Mi Cloud (or Xiaomi Cloud).
  3. Click Warehouse β†’ Clear the cache and Clear the data.
  4. 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:

AnnexAction.What will be removed
Mi CloudCache + data cleanupLocal copies of files from the cloud, synchronization settings
SecurityClearing the dataScan logs, antivirus data, check histories
Mi ShareClearing the cacheTemporary data transfer files between devices
BackupRemoval 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.

πŸ“Š Which app most often leaves garbage in Xiaomi memory?
Mi Cloud
Security
Mi Share
gallery
Other

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:

  1. Open the Settings. β†’ The phone.
  2. Tap 7 times on the MIUI version line to activate the developer mode (if not already activated).
  3. Return to Settings β†’ Additional β†’ Backup and Reset.
  4. Select Resetting β†’ Erase all data.
  5. 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:

  1. Turn off the device.
  2. Press the Power button + Volume up until the Mi logo appears.
  3. From the Recovery menu, select Wipe Data β†’ Wipe All Data.
  4. 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:

  1. Connect the phone to the PC and allow debugging over USB.
  2. Open the command line (cmd) in the folder with the platform-tools.
  3. Enter the command to view the list of devices: Adb devices Make sure your phone appears in the list.
  4. 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?
1. Make sure that the debugging is enabled by USB (Settings β†’ For developers β†’ Debugging by USB). 2.Reinstall Xiaomi drivers USB Drivers on PC. 3. Try another one USB-4. In the command line, execute: adb kill-server adb start-server Then reconnect.

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:

  1. Open your Settings β†’ Xiaomi Account β†’ Mi Cloud.
  2. Check the Photos, Notes, Contacts and Backups sections.
  3. 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.

  1. Open the Settings β†’ Applications β†’ Mi Share.
  2. Press Warehouse. β†’ Clear the cache.
  3. 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.

Frequently asked questions

Can I delete another Xiaomi’s data without dropping my phone?
Manual cleaning (section 1) and application cache reset (section 2) will delete most files, but some system data (such as the Mi Account binding) may remain.
What happens if you delete the MIUI/backup folder?
Nothing critical. This folder stores backups of applications and settings created by MIUI, and deleting them won't affect the system, but you lose the ability to recover data from local backups.
How to delete someone else’s Mi Account if the previous owner did not log out?
If the phone is linked to someone else’s account and you don’t know the password, the only way to do this is to contact the previous owner and ask them to log out remotely (via account.xiaomi.com).
Why do files remain in memory after reset?
Setting resets only delete data from the /data partition, but does not affect the memory card (if any) and some system folders, such as /sdcard/MIUI. Files can also remain on external drives or in protected partitions (for example, /cust).
Can I recover deleted data from another device?
Theoretically, yes, but only if the files were not overwritten with new data, use programs like DiskDigger or Recuva (root access required), but it is illegal to recover someone else's data without the owner's consent.