Does your smartphone constantly display notifications about low memory, although you have long deleted all unnecessary photos and applications? The problem lies in the system folders, which over time become clogged with temporary files, cache and garbage. Cleaning the right directories can free up Android constantly displays notifications about low memory, although you have long deleted all unnecessary photos and applications? The problem lies in the system folders, which over time become clogged with temporary files, cache and garbage. Cleaning up the right directories can be liberating. from 1 to 10 GB space - but only if you know which folders are safe to touch, and which are tied to the operation of the OS and deleting them will lead to system crash.

In this article Let's look all types of folders on Android - from harmless cache to critical system data. You will learn how to distinguish junk from necessary files, what tools to use for cleaning (including hidden functions Android 12-14), and what to do if your phone starts to malfunction after deleting folders. And also - a list of folders that cannot be cleared under any circumstanceseven if they take up gigabytes.

We warn you right away: not all folders are equally useful. For example, a directory may weigh several gigabytes, but cleaning it without knowing the consequences will turn your data-i="44">or /data/dalvik-cache may weigh several gigabytes, but cleaning it without knowing the consequences will turn your Samsung or Xiaomi into a โ€œbrickโ€. And here is the folder /cache is an ideal candidate for cleaning. Read on to understand all the nuances.

๐Ÿ“Š How often do you clear memory on Android?
Once a week
Once a month
Only when space runs out
Never cleared

1. Folders that can be cleaned without risk

Let's start with the safest - directories that can be deleted manually without consequences for the system. These folders contain temporary files, application caches and data that Android will be restored automatically if necessary.

The most obvious target is the folder /cache. It is located in the root directory and contains temporary files used by the system and applications. Clearing it won't do any harm, but it may slow down your phone a little immediately after deleting it (until the cache is restored). The volume of this folder usually does not exceed 100โ€“300 MB, but on some devices (for example, Huawei with EMUI) it can grow up to 1โ€“2 GB.

  • ๐Ÿ“ Folder /cache - system cache that can be cleared at any time. After rebooting, the phone will create new temporary files.
  • ๐Ÿ—‘๏ธ Folders /data/app-asec and /data/app-lib โ€”data of deleted applications is stored here. If you have not used any software for a long time, these directories can be cleared.
  • ๐ŸŽฎ Folder /Android/obb - contains additional game files (for example, graphics for Genshin Impact or Call of Duty Mobile). Delete only if you no longer play.
  • ๐Ÿ“ท Folder DCIM/.thumbnails โ€”thumbnails of photos and videos. You can safely delete them: they will be recreated the next time you view the gallery.

Another safe candidate is folder /data/local/tmp. Temporary files that applications create for their needs are stored here. For example, Telegram or WhatsApp may leave garbage here after updates. The volume rarely exceeds 50โ€“100 MB, but on clogged phones it can reach 500 MB.

๐Ÿ’ก

Before emptying folders, make a backup copy of important data. Even safe directories sometimes contain files that applications will not automatically restore (for example, saves of some games in /Android/obb).

2. Folders that can be cleaned with care

These directories contain data that can be deleted, but with the risk of losing some functionality. For example, clearing the folder /data/data will reset application settings, and deleting files from /data/misc may disrupt the operation of some services (for example, Google Play Services).

One of the most controversial candidates is the folder /data/dalvik-cache. It takes up from 500 MB up to 3 GB and contains optimized versions of applications for virtual machine Dalvik. Cleaning it will not break the system, but:

  • ๐Ÿ”„ The phone will be longer to load after removal (up to 5-10 minutes), since Android rebuilds cache.
  • โš ๏ธ Some applications may work sloweruntil their cache is restored.
  • ๐Ÿ“ฑ On older versions Android (below 8.0) clearing this folder can lead to a cyclic reboot.

Another problematic directory is /data/media/0/Download (or simply /DownloadAll downloaded files are stored here: documents, APK, music. is safe for cleaning, but check its contents carefully โ€”there may be important files downloaded over the years (for example, drivers, archives with photographs or work documents).

Folder What it contains Risks during cleaning Recommendation
/data/dalvik-cache Optimized application cache Slow down the system after uninstallation Clear only if there is an acute lack of memory
/data/data Settings and application data Reset all applications to factory settings Do not clear manually! Use "Reset settings" in the menu
/data/misc System settings (Wi-Fi, Bluetooth, accounts) Loss of saved networks, synchronization errors Clear only individual subfolders (for example, /data/misc/bluetooth)
/data/media/0/Download Downloaded files Loss of important documents Check the contents before deleting

Make sure your phone has enough charge (at least 50%)

Make a backup copy of important data

Remember or write down Wi-Fi/Bluetooth settings

Check if there are firmware updates (on some versions of Android, cleaning system folders leads to errors)-->

3. Folders that absolutely cannot be cleared

These directories tied to the operation of the operating system, and deleting them will lead to inoperability. phone โ€”from boot errors to complete โ€œbrickingโ€ (when the device does not turn on even in recovery mode). Below is a list forbidden foldersthat cannot be touched under any circumstances:

  • ๐Ÿšซ /system - contains Android firmware. Deleting or changing files here will make the phone inoperable.
  • ๐Ÿšซ /boot โ€” boot partition. Without it, the device will not work. will turn on.
  • ๐Ÿšซ /recovery โ€”recovery partition. Removing it will make it impossible to reset settings or install updates.
  • ๐Ÿšซ /efs (on Samsung) - contains IMEI, serial numbers and calibration data. Losing this folder means losing the network forever.
  • ๐Ÿšซ /dev, /proc, /sys โ€” virtual file systemsthat control the operation of the kernel. They cannot be edited even with root access.

The folder /efs on devices Samsung, LG and some models Xiaomiis especially dangerous. It contains unique data that cannot be restored without specialized equipment. If you accidentally delete this directory, the phone will lose connection to the operator's networks and the IMEI will be reset. Restoration is only possible through a service center (and not always).

What to do if you accidentally deleted the system folder?

If the phone still turns on, try resetting the settings via Settings โ†’ System โ†’ Reset. If the device does not boot, you will need to flash it via Odin (for Samsung), Fastboot (for Google Pixel, Xiaomi) or SP Flash Tool (for MTK devices).

โš ๏ธ Attention! On some custom firmwares (for example, LineageOS or Pixel Experience), the folder structure may be different. Before cleaning, check the documentation of your firmware - for example, the folder /vendor in stock Android is critical, and in some custom builds it can be partially modified.

4. How to find and clean folders without root access

If you do not have superuser rights (root), you are done You can also clean some folders using standard tools Android or third-party applications. Here are step-by-step guide:

Method 1: Through the built-in storage

  1. Open the application Files (or any other file manager, for example, Total Commander).
  2. Go to the section Internal memory or Storage device.
  3. Find folders from safe list (see section 1) and delete their contents.

Method 2: Through Android settings

  1. Go to Settings โ†’ Storage.
  2. Click Free up space or Clear cache.
  3. The system will offer to delete unnecessary files, including application cache and downloaded data.

Method 3: Using cleaner applications

Applications like CCleaner, Files by Google or SD Maid can automatically find and remove junk. However, be careful: some of them (especially CCleaner) have a reputation for aggressive scrubbing that can remove desired data. Set them up so they don't touch:

  • ๐Ÿ“‚ Document folders (/Documents, /Download)
  • ๐ŸŽต Music and videos (/Music, /Movies)
  • ๐Ÿ“ฑ Backups (/Backup, /TitaniumBackup)
๐Ÿ’ก

Without root access, you will not be able to clean up system folders like /data/dalvik-cache or /cache completely. Standard methods will remove only part of the garbage.

5. Cleaning folders with root access: risks and opportunities

If you have root, you get access to all folders, including system ones. This allows you to deeply clean the device, but the risks increase significantly. Here's what you can do with superuser rights:

1. cleaning /cache and /data/local/tmp

With root you can delete all files in these folders, and not just those that are accessible through the file manager. Use the command in Terminal Emulator or ADB:

su

rm -rf /cache/*

rm -rf /data/local/tmp/*

2. Clearing the Dalvik cache

This is a risky operation, but if you are sure that you need to free up space, do:

su

rm -rf /data/dalvik-cache/*

After that required reboot phone and wait until the applications are fully optimized (can take up to 15 minutes).

3. Removing remnants of deleted applications

Even after uninstalling the app, โ€œtailsโ€ remain in the folders /data/data and /data/app . To remove them:

su

pm list packages -u | grep 'uninstalled' | sed 's/package://g' | xargs -n1 pm uninstall -k

โš ๏ธ Attention! Some applications (for example, Magisk or Xposed Framework) may conflict with cleaning system folders. If after uninstalling /data/dalvik-cache the phone is stuck on the logo, try reinstalling Magisk via TWRP.

6. What to do if, after cleaning, the phone began to fail

If you deleted something unnecessary and the phone began to work incorrectly (for example, it stopped connecting to Wi-Fi or synchronization disappeared Google account), follow these steps:

1. Reboot the device

Sometimes a normal reboot is enough for the system to restore the missing files. If the phone does not respond to the power button, perform force reboot:

  • For Samsung: press Power + Decrease Volume for 10 seconds.
  • For Google Pixel/Xiaomi: press Power for 20-30 seconds.
  • For OnePlus/Oppo: Power + Volume Up 15 seconds.

2. Reset network settings

If the Internet or Wi-Fi has disappeared, go to Settings โ†’ System โ†’ Reset โ†’ Reset network settings. This will restore the configuration files in the folder /data/misc/wifi.

3. Restore the data via TWRP (if there is a backup)

If you made a backup via TWRP or OrangeFox, boot into recovery and restore the partition /data:

1. Press Power + Volume Up to enter TWRP.

2. Select Restore โ†’ specify backup โ†’ check Data.

3. Confirm the recovery and reboot.

4. Reflash the phone

If all else fails, the only option left is to reinstall the firmware. To do this:

  • Download the official firmware for your model (for example, from the site Xiaomi, Samsung or Google).
  • Flash it via Odin (for Samsung), Fastboot (for Pixel/Xiaomi) or SP Flash Tool (for MTK).
  • Run Wipe Data before flashing if the phone does not boot.

7. How to prevent memory from filling up in the future

So as not to manually clear folders every month, set Android to automatic optimization:

1. Enable automatic cache clearing

There is a built-in function that deletes unnecessary files when there is not enough memory: Android 9+ There is a built-in function that deletes unnecessary files when there is not enough memory:

  1. Go to Settings โ†’ Storage.
  2. Click on three dots (โ‹ฎ) โ†’ Storage settings.
  3. Activate the option Free up space automatically.

2. Limit the cache for individual applications

Some apps (for example, Facebook, Instagram or TikTok) can occupy gigabytes of cache. Limit them:

  1. Open Settings โ†’ Applications.
  2. Select an application (for example, Facebook).
  3. Click Storage โ†’ Clear cache.
  4. To limit future cache, click Limit background activity.

3. Transfer files to an SD card or cloud

If your phone supports microSD, transfer there:

  • ๐Ÿ“ท Photos and videos (DCIM, Pictures)
  • ๐ŸŽต Music and podcasts (Music, Podcasts)
  • ๐Ÿ“„ Documents (Documents, Download)

For cloud storage use Google Drive, Yandex Disk or Dropbox with automatic loading.

4. Install lightweight alternatives to โ€œgluttonousโ€ applications

Some apps consume an unreasonably large amount of space:

Gluttonous. application Easy alternative Memory saving
Facebook Hermit Lite or Frost Up to 500 MB
Instagram Barinstagram (unofficial client) Up to 300 MB
Google Chrome Bromite or Firefox Lite Up to 200 MB
WhatsApp GBWhatsApp (with media cleaning setting) Up to 1 GB (due to automatic media removal)

FAQ: Frequently asked questions about cleaning folders on Android

Can I clear the folder /data/app manually?

No, this will remove all installed applications. If you need to free up space, use standard uninstallation via Settings โ†’. Applications.

Why did the phone become slower after cleaning /cache ?

This is a temporary phenomenon. The system and applications rebuild the cache, which requires resources. After 10โ€“15 minutes, work returns to normal. If the lags remain, check the free space - perhaps it is still not enough (you need at least 10% of the total memory).

How to clear a folder /data/dalvik-cache on Android 13 without root?

Without root this is impossible. The maximum you can do is reset your phone via Settings โ†’ System โ†’ Reset. This will clear dalvik-cachebut will also delete all data.

What happens if you delete a folder /system/priv-app?

This will lead to system failure. This folder stores critical system applications (for example Google Play Services or Settings). The phone will either not turn on or will reboot cyclically.

How to find out which folders take up the most space?

Use storage analysis applications, for example:

  • DiskUsage โ€”shows a graphical representation of the occupied space.
  • Storage Analyzer โ€” sorts folders by size.
  • Files by Google โ€” built-in analyzer with cleaning recommendations.

You can also use ADB-command:

adb shell du -h -d 1 /data | sort -h

It will display a list of folders in /data, sorted by size.