Old system updates Android take up precious space in the deviceโs memory, slow down its operation and can cause conflicts with new firmware versions. Many users do not even suspect that after installing updates, files from previous versions remain in the system, accumulating for years. This problem is especially relevant for devices with a limited amount of built-in memory (16-32 GB), where every megabyte counts.
In this article we will examine safe methods for removing outdated updates without the risk of damaging the system, including manual cleaning through ADB, using built-in tools Android and specialized applications. You will also learn which files can be deleted without consequences, and which files should not be touched, even if they take up a lot of space.
It is important to understand: not all โjunkโ update files can be deleted. Some of them are backup copies to roll back the system in case of failure. Clearing them may make it impossible for you to return the previous version Androidif the new one is unstable. Therefore, before any manipulations, we recommend creating a full backup copy of your data.
Why old updates remain in the system and why they are dangerous
Every time your device receives an update Android (be it a monthly security patch or a major version update), the system stores the files of the previous firmware in a special memory section. This is done so that in the event of an unsuccessful update, you can roll back without data loss. However, over time, these files accumulate, taking up from 500 MB to 2-3 GB precious space.
Main risks associated with outdated updates:
- ๐ Slowdown devices due to memory fragmentation and unnecessary background processes associated with backups.
- ๐ Version conflictswhen remnants of old software interfere with the correct operation of the new one (for example, errors in
Google Play Servicesor system applications). - ๐จ Security vulnerabilities: Old files may contain repairable holes that hackers can use to attack.
- ๐ฑ Problems with updates in the future if the system is unable to correctly determine the current version due to conflicting data.
The situation is especially critical on devices with small memory size (for example, Samsung Galaxy J2, Xiaomi Redmi 4A or Huawei Y5), where 1-2 GB of "garbage" can occupy up to 10-15% of the total volume. On such devices, cleaning updates often gives a noticeable increase in performance.
โ ๏ธ Attention: On some devices (for example, Pixel or OnePlus with clean Android) update files are stored in the section /cache, which the system clears automatically when there is not enough space. On custom firmware (for example, LineageOS), this mechanism may not work - manual cleaning is required.
How to check how much space old updates take up
Before you start cleaning, you need to assess the scale of the problem. There are several ways to do this - from built-in tools Android to third-party utilities.
Method 1: Through storage settings
- Open
Settings โ Storage. - Click on section "System data" or "Other applications" (the name depends on the version Android).
- Look for folders with names like
ota,update,cacheordownloadโthis is where update files are usually stored.
Method 2: Using a file manager
Install an application like Solid Explorer or FX File Explorer with support for root access (if available). Go to the root directory and check the following folders:
- ๐
/cacheโ temporary update files are often located here. - ๐
/data/ota_packageor/data/app/otaโbackup copies of firmware. - ๐
/system/updateโfiles for future updates.
Method 3: Via ADB (for advanced users)
Connect the device to the PC and run the command:
adb shell df -h
Pay attention to the /cache and /data partitions - if they are more than 70% occupied, there is a high probability that unnecessary updates have accumulated there.
| Folder | Typical size of "garbage" | Is it possible to clean |
|---|---|---|
/cache |
200โ800 MB | Yes, completely |
/data/ota_package |
1โ3 GB | Yes, but only if there are no rollback plans |
/system/update |
500 MBโ1 GB | Partially (only inactive files can be deleted) |
/data/dalvik-cache |
100โ500 MB | No, this is a cache of system applications |
If in the folder /cache there is a file with a name like update.zip or ota_update_*.zip, you can safely delete it - this is a firmware archive that is no longer needed after installation.
Method 1: Cleaning through standard Android settings
The simplest and safest method is to use the built-in system tools. It is suitable for most devices without root access and does not require special knowledge.
Instructions:
- Open
Settings โ Applications. - Click on the three dots in the upper right corner and select "Show system".
- Find applications with names:
- ๐ Software Update (on Samsung),
- ๐ System Update (on Xiaomi, Huawei),
- ๐ Software update (on Sony, LG).
Additional step for Samsung devices:
On smartphones Galaxy there is a hidden option to clear update files:
- Open
Settings โ Device maintenance โ Memory. - Click "Clean now" โthe system will automatically delete unnecessary files, including update remnants.
โ ๏ธ Attention: On some devices (for example Huawei c EMUI 10+) clearing application data System Update can reset automatic updates settings. After the procedure, check in Settings โ System โ System updatethat the option "Auto-update" is enabled if you need it.
โ๏ธ Preparing to clean updates
Method 2: Removal via Recovery Mode (without root)
If standard methods do not help, you can use recovery mode (Recovery Mode). This method is suitable for most devices and does not require superuser rights.
Step-by-step guide:
- Turn off device.
- Hold down the combination of buttons to enter Recovery (depending on the model):
- ๐ฑ Samsung:
Power + Volume up + Bixby(orHomeon older models). - ๐ฑ Xiaomi/Redmi/Poco:
Power + Volume up. - ๐ฑ Google Pixel, OnePlus, Motorola:
Power + Volume down.
- ๐ฑ Samsung:
This procedure clears the partition /cachewhere temporary update files are stored. Important: It does not affect user data, but may delete the cache of some applications (for example, Google Play Services), which will lead to their initial loading after a restart.
For advanced users:
If your device supports custom recovery (for example, TWRP), you can manually delete update files:
- In TWRP select "Advanced โ File Manager".
- Go to
/data/ota_packageor/cache. - Delete files with extensions
.zip,.imgor names likeupdate_*. - ๐ฅ๏ธ Computer with installed ADB drivers.
- ๐ฑ Enabled USB debugging on the smartphone (
Settings โ About phone โ Build number(press 7 times) โDeveloper settings โ USB debugging). - ๐ USB cable (preferably original).
โ ๏ธ Attention: On devices with Dynamic Partition (for example Pixel 3 and newer Samsung Galaxy S10+) manual deletion of files from /cache may disrupt the system. In this case, use only the option "Wipe cache partition" in standard Recovery.
What to do if Recovery Mode does not open?
If the button combination does not work, try connecting the device to the PC and use the command adb reboot recovery. On some models (for example, Huawei c Kirin 980/990), the entrance to Recovery is blocked - in this case, only the official utility of the manufacturer will help (for example, HiSuite for Huawei).
Method 3: Use ADB for deep cleaning
Tool Android Debug Bridge (ADB) allows you to delete update files that are not available through the standard interface. This method requires connection to a PC, but does not require root access.
What you will need:
Instructions:
- Connect the device to the PC and open the command line (
cmdin Windows orTerminalin macOS/Linux). - Check the connection with the command:
adb devicesThe name of your device should appear.
- Run the command to clear the update cache:
adb shell pm clear com.android.updateradb shell rm -rf /cache/*
adb shell rm -rf /data/ota_package/* - Reboot the device:
adb reboot
Additional commands for advanced users:
To see the full list of files that can be deleted, run:
adb shell ls -la /data/ota_package
adb shell ls -la /cache
If in the output you see files of size more 100 MB with a modification date older than 1 month, they can be safely deleted.
| ADB command | What it does | Security |
|---|---|---|
adb shell pm clear com.android.updater |
Clears the system cache updater | โ Safe |
adb shell rm -rf /cache/* |
Deletes all contents of the /cache folder | โ Safe (the cache will be restored) |
adb shell rm -rf /data/ota_package/* |
Deletes update files | โ ๏ธ Be careful (you cannot delete the current firmware) |
adb shell rm -rf /data/app/ota-* |
Deletes applications associated with OTA updates | โ Risky (may break updates) |
โ ๏ธ Attention: Commandsrm -rfpermanently deletes files If you make a mistake with. way (for example, enterrm -rf /data/instead of/data/ota_package/), this will lead to complete loss of user ones data and the need to flash the device. Always check the entered commands before executing!
ADB is the most powerful cleaning tool, but requires carefulness. If you are not sure of the commands, use specialized applications from the next section instead.
Method 4: Applications for cleaning updates (without root)
If you work with ADB you donโt want to, you can use third-party utilities. They automate the process and reduce the risk of errors.
Top 3 applications for removing old updates:
- ๐งน SD Maid (former SD Maid Pro) - clears the update cache, temporary files and junk in system folders. "CorpseFinder", which finds the remains of deleted applications and updates.
- โ Pros: work without root, detailed reports.
- โ Cons: some functions are paid.
- ๐๏ธ Files by Google - official application from Google with a cleaning function cache and unnecessary files. In the section "Cleaning" you can find and delete outdated updates.
- โ Pros: free, easy to use.
- โ Cons: does not clean deep system files folders.
- ๐ 1Tap Cleaner โspecializes in clearing the cache, including system updates. Supports an automatic cleaning scheduler.
- โ Pros: fast work, minimalistic interface.
- โ Cons: advertising in the free version.
How use SD Maid to clean updates:
- Install the application from Google Play and provide access to the storage.
- Run a scan in the section "CorpseFinder".
- After analysis, find the folders:
- ๐
/cache, - ๐
/data/ota_package, - ๐
/system/update.
- ๐
.zip or .img older than 1 month) and click "Delete".For devices with root access:
If you have root, application capabilities are expanded. For example, in SD Maid an option will become available "SystemCleaner", which removes:
- ๐๏ธ Remnants of old firmware in
/system. - ๐ฆ Unneeded libraries and APK files from previous ones versions Android.
- ๐ Logs of updates that take up space in
/data/log.
โ ๏ธ Attention: On devices with Android 10+ and divided into/systemand/product(for example, Pixel 4, OnePlus 8) Manually clearing system folders may disrupt the operation of Project Mainline โthe modular update system from Google. In this case, use only proven applications like SD Maid.
Method 5: Manual removal via root access (for experienced)
If your device has root access, you can manually remove all unnecessary update files. This method gives maximum control, but requires caution.
Required tools:
- ๐ฑ Device with unlocked bootloader and installed Magisk or SuperSU.
- ๐ฅ๏ธ File manager with root access (for example, Root Explorer or Mixplorer).
- ๐ก๏ธ Data backup (required!).
What files can be deleted:
Open the file manager with root access and go to the following folders:
- ๐
/cacheโ delete all contents (the cache will be restored automatically). - ๐
/data/ota_packageโhere are the firmware archives. Delete all files except the current version (it can be found inSettings โ About phone). - ๐
/data/app/ota-*โapplications related to updates. They can be deleted, but this will disable automatic system updates. - ๐
/system/updateโfiles for future ones updates. If you do not plan to update via OTA, the folder can be cleared.
What CANNOT be deleted:
- โ Files in
/system/frameworkare the core of the system. - โ Folder
/data/dalvik-cacheโvirtual machine cache Android. - โ Files in
/vendorโdrivers and firmware for hardware.
An example of safe cleaning:
Let's say your device has been updated from Android 11 to Android 12. In the folder /data/ota_package you will see two files:
update_android11.zip(size 1.8 GB),update_android12.zip(size 2.1 GB).
You can delete update_android11.zipas this is an old version. The file update_android12.zip should not be touched - it may be needed to restore the current firmware.
โ ๏ธ Attention: On devices with A/B sections (for example, Pixel, OnePlus 6T+, Samsung Galaxy S9+ and newer) deleting files from/systemor/vendormay lead to brik (impossibility of downloading). Before any manipulations, check whether your device supports Fastboot-recovery.
Root access gives complete control over the system, but one mistake can damage the device. If you are not sure of your actions, use safer methods from the previous sections.
What to do if problems arise after cleaning
In rare cases, deleting old updates can lead to failures. Here's how to fix the most common errors:
Problem 1: The system asks to update, but the update is not installed
Solution:
- ๐ Reboot the device.
- ๐ฅ Download the update manually from the manufacturer's official website and install via Recovery.
- ๐ง Reset application settings System Update (
Settings โ Applications โ Show system โ System Update โ Storage โ Clear data).
Problem 2: Device stuck on logo after clearing cache
Solution:
- ๐ Turn off the device by long pressing the power button.
- ๐ Go to Recovery Mode and select "Wipe cache partition".
- ๐ฑ If that doesnโt help, reset to factory settings ("Factory reset"), but this will delete all user data.
Problem 3: Some system applications have disappeared (for example, Camera or Phone)
Solution:
This means that critical files have been deleted from /system. They can only be restored by flashing the device via Fastboot or Odino (for Samsung).
| Error | Probable cause | Solution |
|---|---|---|
| The update is not downloading | Deleted files in /data/ota_package |
Clear application data System Update |
| The device is overheating | Error in the kernel after clearing the cache | Rebooting or resetting cache in Recovery |
| Applications crash | Deleted system libraries | Flashing or restoring via TWRP-backup |
| Does not work Wi-Fi/Bluetooth | Damaged files in /vendor |
Recovery via Fastboot or service center |
If none of the methods helped and the device is unstable, the best solution would be rollback to factory firmwareFor. this:
- Download the official firmware for your model from the manufacturer's website.
- Install it via Fastboot or Odino (for Samsung).
- Reset the settings after flashing.
โ ๏ธ Attention: If your device is under warranty, any manipulations with the firmware (including manual deletion of system files) may result in denial of warranty service. In this case, it is better to contact a service center for professional cleaning.
FAQ: Frequently asked questions about deleting Android updates
โ Is it possible to delete the current update and return the old version of Android?
Yes, but it depends on the device. On most smartphones (except Google Pixel and some models OnePlus), a rollback is only possible through a complete flashing of the old one. version Android with data loss. On Pixel can be used Android Flash Tool for a downgrade without losing files (but the settings will be reset).
Important: a rollback can lead to problems with the security and operation of applications, since new versions of apps often require a fresh one firmware.
โ Why is the disk space not freed up after clearing the update cache?
You probably deleted the wrong files. Check the following folders:
- ๐
/data/ota_packageโarchives of 1-3 GB in size may be located here. - ๐
/cache/downloadโsometimes updates are downloaded. there. - ๐
/data/app/com.android.updater-*โ updater cache.
Also make sure that after deleting you reboot the device - sometimes the system does not immediately display the free space.
โ Will automatic updates work after cleaning?
Yes, but there is nuances:
- If you cleared only the cache (
/cache), updates will work as usual. - If you deleted files from
/data/ota_package, the system will download them again at the next update. - If you reset the data application System Update, you may need to manually check for updates in the settings.
On devices with Dynamic Partition (for example, Pixel 3+, Samsung Galaxy S10+), cleaning does not affect the operation of OTAupdates.
โ Is it possible to remove updates on a device without root?
Yes, but the options are limited. Without root