Every smartphone user sooner or later faces the problem of lack of internal memory, even if the device has an impressive storage capacity of 128 or 256 GB. Often the culprit is not high-resolution photos or heavy games, but hidden system files that accumulate over months. One of the main “eaters” of gigabytes is the folder .thumbnailslocated deep in the file system.
This directory is designed to store thumbnails of images and videos, which allows the gallery and other applications to display content faster when scrolling the feed. However, over time, the size of this cache can reach tens of gigabytes, which is unreasonably large for simple sketches. In this article we will look in detail at how to safely delete thumbnails on Androidwithout damaging the performance of the system.
What is the .thumbnails folder and why does it take up so much space
The Android system automatically generates Smaller copies of all media files to make the interface work smoothly. Every time you open a gallery, explorer or messenger with images, the system accesses this cache. The problem arises due to the fact that the mechanism for cleaning outdated thumbnails does not work correctly or is completely absent in some firmware.
As a result, even if you delete the original photo from your phone’s memory, its thumbnail may remain in the system forever. The accumulated “garbage” slows down the work of the file manager and eats up valuable space. The thumbnails folder usually located along the path /storage/emulated/0/DCIM/.thumbnails or in the root directory of the internal memory.
It is worth noting that deleting this folder will not lead to the loss of your personal photos or video. You delete only temporary preview files, which the system will create again if necessary, but in reasonable quantities, if you do not allow them to grow uncontrolled.
⚠️ Attention: Before any manipulations with system files, it is recommended to create a backup copy of important data. Although deleting the cache is safe, accidentally deleting other files in the same directory can lead to errors.
If you see that the folder takes up more than 1-2 GB, this is a clear signal that the auto-cleaning mechanism on your device is not functioning properly.
Preparing for cleaning: obtaining access rights
Before you start deleting, you need to make sure that you have access to hidden files. By default, many file managers hide objects whose names begin with a dot. You will need to enable show hidden items in your File Explorer settings.
For advanced users who want to perform a deep clean, you may need to access the root file system. Conventional methods through a standard explorer work in 90% of cases, but sometimes the system blocks the deletion of files that are currently used by the media scanning process.
If you plan to use your computer for cleaning, turn on the USB debuggingmode on your smartphone. This will allow you to connect the device to a PC and manage files more flexibly using command line tools or specialized software.
☑️ Check before deleting
Method 1: Removal through the built-in file manager
The simplest and most accessible method does not require connecting to a computer or receiving root access. You will need any high-quality file manager, for example Files by Google, Solid Explorer or a standard explorer from the manufacturer.
Go to the application settings and activate the “Show hidden files” item. After that, go to the internal storage and find the folder DCIM. Inside you will see a directory .thumbnails. Tap and hold your finger to highlight it, then select the “Delete” action.
Sometimes the system may give an error that the file is busy. In this case, try rebooting your smartphone into safe mode or simply restarting the device before trying again. This method is effective for one-time cleaning of accumulated garbage.
- 📂 Open the Explorer settings and turn on the “Hidden files” checkbox.
- 📁 Follow the path
Internal memory → DCIM → .thumbnails. - 🗑️ Select the entire contents of the folder and confirm deletion.
- 🔄 Reboot the device to apply the changes.
⚠️ Attention: Do not delete the folder itself
DCIMin which your original photos are stored! Delete only the subdirectory.thumbnails.
Method 2: Cleaning via computer and ADB
If the built-in tools fail to delete files, you can use a computer. Connect your smartphone with a cable to your PC in file transfer mode (MTP). Find the corresponding folder in the “My Computer” window and delete its contents manually.
A more reliable way is to use the utility ADB (Android Debug Bridge). This method allows you to delete files even if they are blocked by the system interface. To do this, install the ADB drivers on your computer and connect your phone with debugging enabled.
Open the command line on your computer and enter the command to delete the cache. This method ensures that the files are physically erased and not simply moved to the trash.
adb shell rm -rf /sdcard/DCIM/.thumbnails/*
After executing the command, check the free space in the storage settings. If the folder appears again immediately after cleaning, there may be an application in the background that is actively scanning media files. In this case, you should check the settings of recently installed apps.
What to do if ADB does not see the device?
Make sure that a window asking for debugging permission appears on the phone screen, and click “Allow”. Also try using a different USB cable or port, as some cables only support charging.
Method 3: Using root access to completely wipe
For users with an unlocked bootloader and obtained root access access to the deepest system partitions. This allows you not only to delete the current cache, but also to prevent the system from creating it again.
Using a file manager with superuser support, for example, Root Explorer or MT Manager, you can go to the system partition and find alternative ways to store the cache that are not available to the usual user.
Experienced users can create an empty file instead of a folder and disable writing to it. This is a clever trick that tricks the system: it tries to write the thumbnail to a file, gets rejected and stops generating garbage.
| Method | Complexity | Efficiency | Risks |
|---|---|---|---|
| File manager | Low | Average | Minimum |
| Computer (MTP) | Low | High | Minimum |
| ADB Commands | Average | High | Average |
| root access | High | Maximum | High |
Using root access gives maximum control, but voids the warranty on the device and can lead to “bricking” if not careful actions.
How to prevent the cache from growing again
After successful cleaning, it is important to take measures so that the situation does not repeat itself in a month. The most effective method is to create a “stub file”. Delete the folder .thumbnails, then create a regular text file in the same place and name it exactly the same: .thumbnails (without the .txt extension).
Since the system cannot create a folder with a name that is already occupied by the file, generating new thumbnails will stop. This may make opening the gallery a little slower on first launch after clearing, but will save gigabytes of memory.
It is also recommended to regularly use cache clearing applications, such as SD Maid or Clean Master (with caution), which can find and remove orphaned thumbnails - thumbnails of deleted photos.
- 🛡️ Create a stub file named
.thumbnailsinstead of a folder. - 🧹 Set up automatic cache clearing once a week.
- 📵 Disable autosaving of media from messengers to the gallery.
⚠️ Attention: Interfaces and file paths may vary slightly depending on the version of Android and the manufacturer’s shell (MIUI, OneUI, ColorOS). Always check the latest documentation for your model.
Frequently asked questions (FAQ)
Is it safe to delete the .thumbnails folder?
Yes, it is absolutely safe. This folder only stores temporary thumbnails. Your original photos and videos are in other directories and will not be affected.
Why does the folder appear again after deletion?
The Android system automatically recreates this folder the first time you access the gallery or scan media files. To avoid this, use the method with a stub file.
Removing thumbnails will speed up the phone?
This will not have a direct effect on the overall speed of the system, but will free up space on the drive. If the memory was full, the phone can really start working faster.
Is it possible to delete this folder without root access?
Yes, in most cases a standard file manager is enough to delete the contents of this folder in the DCIM partition. Root is only needed to access system partitions.
How much space does this cache usually take up?
Normally, the cache should occupy several hundred megabytes. If you see a volume of 5, 10 or more gigabytes, this indicates a failure in the cleaning mechanism.