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.

๐Ÿ“Š How often do you update the Android firmware?
Automatically, as soon as the update is released
Once every 2-3 months
Only with critical bugs
I never update
I donโ€™t know how to do this

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 Services or 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

  1. Open Settings โ†’ Storage.
  2. Click on section "System data" or "Other applications" (the name depends on the version Android).
  3. Look for folders with names like ota, update, cache or download โ€”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_package or /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:

  1. Open Settings โ†’ Applications.
  2. Click on the three dots in the upper right corner and select "Show system".
  3. Find applications with names:
    • ๐Ÿ”„ Software Update (on Samsung),
    • ๐Ÿ”„ System Update (on Xiaomi, Huawei),
    • ๐Ÿ”„ Software update (on Sony, LG).
  • Select "Storage" โ†’ "Clear cache" and "Clear data".
  • Additional step for Samsung devices:

    On smartphones Galaxy there is a hidden option to clear update files:

    1. Open Settings โ†’ Device maintenance โ†’ Memory.
    2. 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

    Done: 0 / 4

    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:

    1. Turn off device.
    2. Hold down the combination of buttons to enter Recovery (depending on the model):
      • ๐Ÿ“ฑ Samsung: Power + Volume up + Bixby (or Home on older models).
      • ๐Ÿ“ฑ Xiaomi/Redmi/Poco: Power + Volume up.
      • ๐Ÿ“ฑ Google Pixel, OnePlus, Motorola: Power + Volume down.
  • In the menu Recovery select "Wipe cache partition" (control is carried out with the volume and power buttons).
  • Confirm the action and wait for completion.
  • Restart the device ("Reboot system now").
  • 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:

    1. In TWRP select "Advanced โ†’ File Manager".
    2. Go to /data/ota_package or /cache.
    3. Delete files with extensions .zip, .img or names like update_*.
    4. โš ๏ธ 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:

      • ๐Ÿ–ฅ๏ธ 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).

    Instructions:

    1. Connect the device to the PC and open the command line (cmd in Windows or Terminal in macOS/Linux).
    2. Check the connection with the command:
      adb devices

      The name of your device should appear.

    3. Run the command to clear the update cache:
      adb shell pm clear com.android.updater
      

      adb shell rm -rf /cache/*

      adb shell rm -rf /data/ota_package/*

    4. 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: Commands rm -rf permanently deletes files If you make a mistake with. way (for example, enter rm -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:

    1. Install the application from Google Play and provide access to the storage.
    2. Run a scan in the section "CorpseFinder".
    3. After analysis, find the folders:
      • ๐Ÿ“ /cache,
      • ๐Ÿ“ /data/ota_package,
      • ๐Ÿ“ /system/update.
  • Mark unnecessary files (usually these are archives with the extension .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 /system and /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 in Settings โ†’ 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/framework are 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 /system or /vendor may 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:

    1. Download the official firmware for your model from the manufacturer's website.
    2. Install it via Fastboot or Odino (for Samsung).
    3. 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