The folder Temp (or temporary files) on Android is a hidden storage that many users do not even know exists. It is automatically filled with data from applications, the system and browser cache, but is rarely cleared without your intervention. If you notice that your smartphone has started to slow down and the free disk space is melting before your eyes, this folder may be the culprit.

Unlike Windowswhere the path to temporary files is standard (C:\Windows\Temp), on Android everything is more complicated: the location of the folder Temp depends on the OS version, device manufacturer and even installed applications. In this article, we will look at where to look for temporary files on different devices, how to safely delete them, and what to do if the system does not allow access.

Spoiler: not all files in Temp can be deleted without consequences. Some of them are used by active processes, and clearing them may cause crashes. Therefore, we will also tell you how to distinguish garbage from important data.

What is the Temp folder on Android and why do you need it?

Folder Temp (from English temporary โ€”temporary) is a system directory where files necessary for short-term operations are stored. For example:

  • ๐Ÿ“ Application cache (images, videos, form data)
  • ๐Ÿ”„ Error logs and debugging information
  • ๐Ÿ“ฅ Underloaded files (for example, interrupted downloads from the browser)
  • ๐Ÿ–ผ๏ธ Thumbnails of images and thumbnails
  • ๐Ÿ“ Temporary copies of documents (for example, when editing in Microsoft Word or Google Docs)

Ideally, the system should automatically clear Temp after operations are completed. But in practice, many applications (especially browsers and instant messengers) leave behind โ€œtails.โ€ Over time, this leads to to:

  • โš ๏ธ Slowdown of work smartphone due to memory fragmentation
  • ๐Ÿ“‰ Lack of space on the internal drive
  • ๐Ÿ”„ Crashes applicationsif temporary files are damaged

On some devices (for example, Samsung or Xiaomi), the folder Temp may take up up to 5โ€“10 GB โ€”and this is not the limit if you actively use social networks, streaming services or games.

๐Ÿ“Š How often do you clear the cache on your smartphone?
Once a week
Once a month
Only when the memory runs out
Never cleared

Where is the Temp folder on Android: paths for different devices

There is no universal path to the folder Temp on Android - it all depends on the OS version and the manufacturerโ€™s shell. Below we have collected the current paths for popular brands.

Manufacturer Path to Temp folder Notes
Stock Android (Google Pixel, Motorola) /data/local/tmp/ Required root access for access
Samsung (One UI) /data/data/com.sec.android.app.launcher/ or /sdcard/Android/data/*/cache/ Temporary files can be scattered across several folders
Xiaomi (MIUI) /data/local/tmp/ or /sdcard/MIUI/ Some of the temporary files are stored in a folder MIUI
Huawei (EMUI) /data/local/tmp/ or /sdcard/Huawei/Backup/ Temporary backup files can weigh several gigabytes
Oppo/Realme (ColorOS) /data/local/tmp/ or /sdcard/ColorOS/ Folder ColorOS contains system logs

If your manufacturer is not in the table, try the following universal paths:

  • /data/local/tmp/ โ€” Temp system folder (root access required)
  • /sdcard/Android/data/*/cache/ โ€” cache applications (access without root) - image thumbnails Use a file manager that supports showing hidden files, for example
  • /sdcard/DCIM/.thumbnails/ - image thumbnails
  • /sdcard/Download/temp/ - temporary downloads
๐Ÿ’ก

On devices with Android 11+ Some temporary files can be stored in isolated application folders (/sdcard/Android/media/). Use a file manager that supports showing hidden files, for example Solid Explorer or FX File Explorer

How to find the Temp folder without root access

If you don't have root accessyou can still clear some of the temporary files. Here are step-by-step guide:

  1. Install a file manager that supports hidden folders (for example, Total Commander or ES Explorer).
  2. Turn on display of hidden folders files:
    • V Total Commander: Settings โ†’ Display โ†’ Show hidden files
    • V ES Explorer: Menu โ†’ Settings โ†’ Show hidden files
  • Go to the root folder of the internal memory (/sdcard/ or /storage/emulated/0/).
  • Look for folders named:
    • temp or tmp
    • cache (inside application folders)
    • .thumbnails (image thumbnails)
    • If you use Windows to view smartphone files via MTP, hidden folders may not be displayed. In this case:

      1. Connect your phone to the PC.
      2. In Explorer Windows go to the tab View and check the box Hidden items.
      3. Open the phone folder and check the paths from the previous section.

    Enable display of hidden files

    Check the folder /sdcard/Android/data/

    Find folders with the extension .tmp or _temp

    Use search using the keyword "temp"-->

    Attention! Not all folders temp can be deleted manually. For example, temporary files of instant messengers (WhatsApp, Telegram) or banking applications may contain important data for work. Delete only those files that:

    • Created more than a month ago
    • Have an extension .tmp, .temp, .log
    • Located in folders cache or thumbnails
    • How to clear the Temp folder: safe methods

      You can delete temporary files in several ways - from manual cleaning to using specialized utilities. Let's consider each option.

      Method 1: Manual cleaning through the file manager

      This method is suitable if you are confident in your actions and are ready to manually check each file.

      1. Open the file manager (for example, Solid Explorer).
      2. Go to folder /sdcard/Android/data/.
      3. Open the application folder (for example, com.facebook.katana for Facebook).
      4. Find the folder inside cache and delete its contents.

      What files can be deleted without risk:

      • ๐Ÿ—‘๏ธ Files with extension .tmp, .temp, .log
      • ๐Ÿ–ผ๏ธ Folder .thumbnails (image thumbnails)
      • ๐Ÿ“‚ Folders temp inside /sdcard/Download/

      Which files CANNOT be deleted:

      • ๐Ÿšซ Files in folders com.android.providers.media (media database)
      • ๐Ÿšซ Folders with names lib, databases (system data applications)
      • ๐Ÿšซ Files with the extension .db or .sqlite (databases)

      Method 2: Cleaning through Android settings

      Android has a built-in tool for clearing the cache, but it does not delete all temporary files.

      1. Go to Settings โ†’ Storage.
      2. Click Free up space or Clear cache.
      3. Select applications with a large cache size (for example, YouTube, Chrome).
      4. Click Clear cache.

      This method deletes only the application cache, but does not affect system temporary files c /data/local/tmp/.

      Method 3: Using specialized utilities

      Cleaning applications (for example, CCleaner, SD Maid, Files by Google) can automatically find and delete temporary files. However, be careful:

      • โœ… SD Maid is the most powerful solution (requires root for complete cleaning)
      • โš ๏ธ CCleaner โ€” can delete too aggressively, which leads to failures
      • โœ… Files by Google โ€” a safe option without root, but it does not clear everything

      We recommend starting with Files by Google:

      1. Install the application from Play Market.
      2. Open the section Cleanup.
      3. Select Temporary files and Application cache.
      4. Click Delete.
      What happens if you delete system temporary files?

      Deleting files from /data/local/tmp/ without root can lead to:

      - Stopping background processes (for example, application updates).

      - Loss of unsaved data in some applications (for example, drafts in instant messengers).

      - Failures in the operation of system utilities (for example, Google Play Services).

      If after cleaning the device becomes unstable, reboot it or reset the cache in Recovery Mode (press Power + Volume Up when turning it on).

      How to clear Temp on Android with root access

      If you have root accessyou can delete everything temporary files, including system files. This is the most effective method, but also the most risky.

      Attention! Incorrect actions with root can lead to data loss or system damageBefore cleaning:

      โš ๏ธ Back up your important data via Titanium Backup or Swift Backup. associated with application licenses or game saves.

      To clean the system folder /data/local/tmp/:

      1. Install a file manager with root support (for example, Root Explorer or FX File Explorer).
      2. Go to /data/local/tmp/.
      3. Select all files and folders (except those that are currently in use).
      4. Delete them and reboot the device.

      To automate the process, you can use the command ADB:

      adb shell
      

      su

      rm -rf /data/local/tmp/*

      rm -rf /sdcard/*.tmp

      exit

      exit

      This command will delete all files in the system folder Temp and temporary files on the memory card.

      What to do if the Temp folder is not cleared

      Sometimes temporary files can be blocked by the system or applications. Here's what to do in such cases:

      • ๐Ÿ”„ Restart the device โ€”many temporary files will be freed after reboot.
      • ๐Ÿ›‘ Close all applications through the task manager (Settings โ†’ Applications โ†’ Running).
      • ๐Ÿ”ง Use Safe Mode:
        1. Hold the button Shutdown.
        2. Hold your finger on Turn off poweruntil appears Safe Mode.
        3. In Safe Mode, try deleting the files again.
    • ๐Ÿ“ฑ Reset cache c Recovery Mode:
      1. Turn off the phone.
      2. Hold Power + Volume Up (for Samsung โ€” Power + Volume Up + Bixby).
      3. Select Wipe Cache Partition.
  • If the file is still not deleted, check it through ADB:

    adb shell
    

    su

    ls -l /path/to/file

    If the output contains root root or system system, then the file belongs to the system, and additional rights will be required to delete it.

    How to prevent the Temp folder from becoming clogged in the future

    To temporary files do not accumulate again, follow these tips:

    • ๐Ÿ—“๏ธ Clear the cache regularly (once every 1-2 weeks) after Settings โ†’ Storage.
    • ๐Ÿšซ Limit background application activity:
      • Go to Settings โ†’ Applications โ†’ [Select an application] โ†’ Battery โ†’ Background activity.
      • Disable background work for unnecessary applications.
      • ๐Ÿ“ต Use Lite versions applications (for example, Facebook Lite, Messenger Lite), which create fewer temporary files.
      • ๐Ÿ”„ Set up automatic cleaning v Files by Google:
        1. Open Files by Google.
        2. Go to Settings โ†’ Auto Cleanup.
        3. Enable the option and select the frequency (for example, once a week).
    • ๐Ÿ“‚ Move the cache to a memory card (if supported):
      • In Settings โ†’ Storage โ†’ Preferred save location select Memory card.

    For advanced users, there is another way - change environment variable TMPDIRto have temporary files created in a different location. However, this requires root and knowledge of the commands Linux.

    ๐Ÿ’ก

    Regularly cleaning the Temp folder not only frees up space, but also increases the speed of the smartphone by 15-30% (according to tests AnTuTu on devices with full memory).

    FAQ: Frequently asked questions about the Temp folder on Android

    Is it possible to completely delete the Temp folder?

    No, the folder Temp is a system one, and Android will create it again if necessary. However, you can delete it contentsif the files are not used by active processes.

    The exception is folders Temp inside applications (for example, /sdcard/Android/data/com.example.app/temp/). They can be deleted completely, but they will be restored the next time you start the app.

    Why does the memory fill up again after clearing Temp?

    This is normal Android behavior. Many applications (especially browsers and social networks) actively create temporary files. To reduce their number:

    • Limit the background activity of applications in the battery settings.
    • Use Lite versions apps.
    • Set up automatic cache clearing (for example, via Files by Google).
    Can clearing Temp corrupt data in applications?

    Yes, if you delete:

    • Temporary files messengers (for example, unsent messages in WhatsApp).
    • Cache banking applications (re-authorization may be required).
    • Game files (for example, unsaved progress in Genshin Impact or PUBG Mobile).
    • Always check which files you are deleting, or use specialized utilities like SD Maidthat analyze the safety of cleaning.

    How to clear Temp on Android without a file manager?

    If you do not want to use third-party applications, use the built-in tools:

    1. Go to Settings โ†’ Storage โ†’ Free up space.
    2. Select Application cache and Downloads.
    3. Delete unnecessary ones files.

    This method does not clear the system folder Tempbut deletes most of the unnecessary data.

    Do you need root access to clear Temp?

    No, but with root you can delete all temporary files, including system files. Available without root:

    • Clearing the application cache through settings.
    • Deleting files in /sdcard/Android/data/*/cache/.
    • Cleaning thumbnails (.thumbnails) and downloads.

    For complete cleaning /data/local/tmp/ root is required.