Owners of Android smartphones are often faced with a mysterious situation: the internal memory of the device is rapidly filling up, although the user has not installed heavy applications or downloaded new movies. A detailed analysis of the storage through the file manager reveals a hidden folder with the name .thumbdata, which can occupy from several hundred megabytes to tens of gigabytes. This phenomenon causes fair bewilderment and a desire to immediately get rid of the “parasite” that is devouring valuable space.
In fact, this directory is not a virus or the result of a system failure. This is a service cache created by the standard Gallery or Google Photos application to speed up work. The system generates thumbnails (previews) of all images and videos, so that when you open an album, you see the pictures instantly, rather than waiting for them to load. However, the algorithms for the operation of this cache on some versions of the operating system are far from perfect, which leads to its uncontrolled growth.
In this article we will analyze in detail the nature of the file .thumbdata3--1967290299 (and its analogues), explain why simple deletion often does not have a long-term effect, and offer working methods for stopping its growth. You will learn how to safely clear memory without losing your personal photos, and what settings will help prevent the storage from filling up again with junk data.
The nature and purpose of the folder
The file .thumbdata is a database of thumbnails. When you take a photo or download an image from the messenger, the system reads it and creates a small, low-resolution copy. This copy is saved in a special database so that the gallery interface works smoothly. Without such a mechanism, scrolling through a feed with thousands of photos would turn into a painful wait for each file to be loaded.
The problem arises because standard cache clearing algorithms in Android do not work correctly for this particular folder. Instead of deleting old thumbnails of deleted photos, the system continues to accumulate new entries. As a result, even if you delete the original image from memory, its “ghost” in the form of a thumbnail can remain in the database thumbdata indefinitely.
The size of this file directly depends on the number of media files on your device. If you actively use the camera or receive a lot of pictures on WhatsApp or Telegram, the cache size will grow exponentially. In some recorded cases, users found that this single file occupied more than 15 GB, which is critical for smartphones with a basic memory configuration.
⚠️ Attention: The .thumbdata folder is hidden. To see it in the file manager, you need to activate the mode for displaying hidden system files in the Explorer settings. This option is usually found in the three dots menu or in the application settings.
If you are using a third-party gallery (for example, Simple Gallery or QuickPic), the problem with thumbdata growth may be less pronounced, since these applications use their own caching mechanisms, not the system ones.
Preparing for cleaning and necessary tools
Before taking radical measures to remove system files, you need to make sure that your data is safe. Although deleting the thumbnail cache does not affect the original photos, an occasional error while working with the file system can lead to trouble. It is recommended to back up important pictures to cloud storage or to your computer.
To complete the procedure, you will need a reliable file manager. Standard Android tools sometimes restrict access to the root directory or hidden folders on new versions of the system (Android 11 and higher). Therefore, it is better to use proven solutions such as Total Commander, FX File Explorer or Files by Google.
It is also worth checking the available disk space before starting the operation. This will help you subsequently evaluate the effectiveness of the cleaning performed. If the memory is full, the system may be unstable, so freeing up space is a priority to maintain the performance of the smartphone.
☑️ Preparing to delete thumbdata
Manual deletion through a file manager
The easiest and most accessible way to get rid of a bloated file is to find it manually and delete it. This method does not require superuser rights (Root) and is safe for most devices. However, it is important to understand that without additional actions the file may appear again.
The algorithm of actions is quite simple. Open your file manager and go to the root directory of the internal memory (usually indicated as /sdcard or Internal Storage). Look for a folder named DCIM. It is inside it, on the same level as the folder Camera, that the ill-fated file is most often hidden.
Having found a file with the name of the type .thumbdata3--1967290299 (the numbers at the end may differ), click on it and hold your finger until the context menu appears. Select "Delete". The system may request confirmation of the operation - agree. The process of deleting a large file may take from several seconds to a minute depending on the speed of your drive.
- 📂 Open the file manager and turn on the display of hidden files.
- 📁 Follow the path:
Internal memory → DCIM. - 🗑️ Find the file
.thumbdata...and delete it. - 🔄 Restart the device to reset the indexing processes.
After deleting, it is recommended to immediately restart the smartphone. This is necessary so that system services responsible for media content complete their work and do not try to restore the file in the background immediately after it is erased. Rebooting will also clear the RAM of hung gallery processes.
What to do if the file is not deleted?
If you get a "File busy" or "No permissions" error when you try to delete it, try to force stop the Gallery or Google Photos app through your phone settings (Applications → Gallery → Stop), and then try again deletion.
Method of replacing a file with a null object
Simply deleting a file often gives only a temporary effect. As soon as you open the gallery again or take a new photo, the system will detect the absence of the thumbnail database and begin creating it again. To prevent this, you can use a clever trick with file substitution.
The essence of the method is to create an empty file with the same name and prohibit the system from writing new data to it. We create a “decoy” that occupies 0 bytes, but has attributes that prevent the system from modifying it. Thus, the cache space is physically blocked.
To implement this method, you may need an application that can create empty files, or a connection to a computer. Create a text document, name it exactly the same as the deleted cache file (for example, .thumbdata3--1967290299), and place it in the DCIMfolder. Then, through the file properties, check the "Read-only" checkbox.
| Parameter | Normal deletion | Replacement with a null file |
|---|---|---|
| Efficiency | Temporary (file will return) | Constant (growth blocked) |
| Difficulty | Low | Medium |
| Impact on the Gallery | Minimal | Possible slowdown on first launch |
| Root required | No | No (in most cases) |
Keep in mind that after using this method, scrolling the gallery in the first time may be a little slower, since the system has nowhere to take ready-made miniatures. However, this is a one-time occurrence and is not comparable to the loss of gigabytes of memory. The file will remain null forever unless you decide to change its attributes.
The read-only file method is the most effective solution for ordinary users who do not want to obtain root access, but want to permanently solve the problem of cache growth.
Use of third-party applications for cleaning
If manual manipulation of the file system seem too complicated or risky to you, you can entrust this task to specialized utilities. There are many cleaner applications in the Play Market that can find and safely delete thumbnail cache files.
One of the popular solutions is the application SD Maid. It has deep access to the system and can find “corpses” of files - data that remains from deleted applications or system processes. In the "Trash" or "System Cache" section, this utility often detects bloated files .thumbdata.
You can also use the "Clear Cache" function in the settings of the Gallery application itself. Go to Settings → Applications → Gallery → Storage and click the "Clear cache" button. This is a less drastic method than deleting a file, but it can help reduce its size without completely disrupting the database structure.
- 🧹 SD Maid is a powerful tool for deep cleaning the system.
- 📱 Files by Google —an official application with the function of removing duplicates and garbage.
- ⚙️ Android Settings —built-in clearing of the cache of specific applications.
When choosing third-party software, be careful about the permissions you provide. Avoid dubious “memory boosters” that promise miracles, but in reality only show advertising. Use only proven applications with high ratings and a large number of reviews.
⚠️ Attention: Some aggressive cleaners can delete not only the thumbnail cache, but also your album settings or hidden folders with important documents. Always check the list of files that the app plans to delete before confirming the operation.
Radical measures and resetting the settings
In situations where the file .thumbdata is damaged and cannot be restored deletion, or if the system continually generates errors when trying to access the gallery, more severe intervention may be required. The last resort is to reset the Gallery application settings to the factory state.
This procedure will delete all sorting settings, favorite albums and, of course, the entire accumulated thumbnail cache. To perform a reset, go to your phone's Settings menu, find the Apps section, select your Gallery and tap Reset or Clear Data. Do not confuse with “Clear cache” - we need a complete clearing of application data.
If the problem is systemic in nature and affects the entire operating system (for example, after an unsuccessful update), a complete reset of the phone (Hard Reset) can help. This operation will delete all data from the device, so a full backup of all contacts, photos and documents is required before starting. After the reset, the problem with incorrect caching usually disappears.
Another option is to disable the standard gallery, if your firmware allows it, and install an alternative application from the store. New galleries often have more modern algorithms for working with thumbnails and do not create giant files of old formats.
Is it possible to disable thumbdata creation completely?
It is impossible to completely disable thumbnail creation without losing gallery functionality. However, you can limit the amount of memory allocated for the cache through the engineering menu or special Magisk modules, but this requires root access and deep knowledge of the system.
Prevention and recommendations for storing photos
To prevent the problem of memory overflow from returning, it is worth reconsidering the approach to storing media files. The modern standard is cloud storage. Services like Google Photos, Yandex.Disk or Dropbox allow you to store pictures on the Internet, freeing up local space.
Set up automatic synchronization with deletion of local copies. Google Photos Settings has a Free Up Space feature that finds photos already uploaded to the cloud and removes them from your phone's storage. At the same time, in the gallery they remain available for viewing via the Internet.
Regularly audit the files. Once a month, go to the downloads and messengers folder, delete unnecessary pictures, stickers and videos. It is this “small garbage” that most often causes the file to grow .thumbdata, since each such image is indexed by the system.
⚠️ Attention: Menu interfaces and item names may differ depending on the model of your smartphone (Samsung, Xiaomi, Pixel) and the version of the Android shell. If you do not find the described item, use the settings search or refer to the manufacturer's official documentation.
Remember that the file .thumbdata is only a symptom, not a disease. The cause needs to be treated: an excess of unnecessary files and unoptimized operation of the storage system. Following simple rules of digital hygiene will help your smartphone stay fast and clutter-free throughout its lifespan.
Is it safe to delete the .thumbdata file manually?
Yes, it is absolutely safe for your personal photos and videos. The file contains only thumbnails (previews). After deletion, the original images will remain in place, but when you first open the gallery, the system may spend a little more time displaying them until it creates a new, already optimized cache.
Why does the .thumbdata file appear again after deletion?
This is normal system behavior. The Gallery app or Android media scanner constantly monitors changes to image folders. As soon as you open a gallery or take a new photo, the system checks for the presence of a database of thumbnails. If it is not there, it creates a new entry, starting the cache accumulation process all over again.
Are root access needed to delete this folder?
In most cases, root access is not required. The file is located in a public part of the internal memory (/sdcard/DCIM), where standard file managers have write access. Problems with deletion are more often associated with the fact that the file is occupied by a system process, rather than with access rights restrictions.
Could this file be a virus?
The file itself .thumbdata is not a virus. This is a legitimate Android system file. However, attackers can disguise malware as system files. If the file has a strange extension (not just numbers at the end) or is located in an unusual folder (not in DCIM), it is worth checking the device with an antivirus.
How to prevent rapid file growth in the future?
The best prevention method is to regularly clean up unnecessary photos and use the method of replacing the file with an empty object with the “Read-Only” attribute. It also helps to disable automatic scanning of media files in the settings of some file managers and use cloud galleries instead of local ones.