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.
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:
- Install a file manager that supports hidden folders (for example, Total Commander or ES Explorer).
- Turn on display of hidden folders files:
- V Total Commander:
Settings โ Display โ Show hidden files - V ES Explorer:
Menu โ Settings โ Show hidden files
- V Total Commander:
/sdcard/ or /storage/emulated/0/).temportmpcache(inside application folders).thumbnails(image thumbnails)- Connect your phone to the PC.
- In Explorer Windows go to the tab
Viewand check the boxHidden items. - Open the phone folder and check the paths from the previous section.
If you use Windows to view smartphone files via MTP, hidden folders may not be displayed. In this case:
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
cacheorthumbnails - Open the file manager (for example, Solid Explorer).
- Go to folder
/sdcard/Android/data/. - Open the application folder (for example,
com.facebook.katanafor Facebook). - Find the folder inside
cacheand delete its contents. - ๐๏ธ Files with extension
.tmp,.temp,.log - ๐ผ๏ธ Folder
.thumbnails(image thumbnails) - ๐ Folders
tempinside/sdcard/Download/ - ๐ซ Files in folders
com.android.providers.media(media database) - ๐ซ Folders with names
lib,databases(system data applications) - ๐ซ Files with the extension
.dbor.sqlite(databases) - Go to
Settings โ Storage. - Click
Free up spaceorClear cache. - Select applications with a large cache size (for example, YouTube, Chrome).
- Click
Clear cache. - โ 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
- Install the application from Play Market.
- Open the section
Cleanup. - Select
Temporary filesandApplication cache. - Click
Delete. - Install a file manager with root support (for example, Root Explorer or FX File Explorer).
- Go to
/data/local/tmp/. - Select all files and folders (except those that are currently in use).
- Delete them and reboot the device.
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.
What files can be deleted without risk:
Which files CANNOT be deleted:
Method 2: Cleaning through Android settings
Android has a built-in tool for clearing the cache, but it does not delete all temporary files.
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:
We recommend starting with Files by Google:
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/:
To automate the process, you can use the command ADB:
adb shellsu
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:
- Hold the button
Shutdown. - Hold your finger on
Turn off poweruntil appearsSafe Mode. - In Safe Mode, try deleting the files again.
- Hold the button
- Turn off the phone.
- Hold
Power + Volume Up(for Samsung โPower + Volume Up + Bixby). - Select
Wipe Cache Partition.
If the file is still not deleted, check it through ADB:
adb shellsu
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:
- Open Files by Google.
- Go to
Settings โ Auto Cleanup. - Enable the option and select the frequency (for example, once a week).
- Go to
- ๐ Move the cache to a memory card (if supported):
- In
Settings โ Storage โ Preferred save locationselectMemory card.
- In
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:
- Go to
Settings โ Storage โ Free up space. - Select
Application cacheandDownloads. - 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.