Update:
A faster way to accomplish this is to do the following:
This will erase unnecessary data, in my case over 1GB.
- - - -
Using a disk space analyzer, I was surprised to see that my Android tablet had 1.03GB of photos. This was odd to me, because I knew there were only a couple of photos on the device.
I pinpointed the problem to thumbnails. These are tiny copies of photos used by some apps to more quickly display pictures. Specifically, the 1GB was being taken up by a thumbnail index file, and I didn't need to lose that 1GB to a function I don't use on the tablet. I erased the file as follows:
1. Open a file manager on Android. I use File Manager from Rhythm Software.
2. Ensure that it can display system or hidden files. This is an option somewhere under Settings. In File Manager, tap Menu > Settings > Show Hidden Files.
3. Navigate to \mnt\sdcard\DCIM\ .thumbnails. By the way, DCIM is the standard name for the folder that holds photographs, and is the standard for pretty much any device, whether smartphone or camera; it is short for "digital camera IMages." Another BTW: when a folder name is prefixed with a period, then it is a hidden folder in Android (such as .thumbnails).
4. Select and erase the file that's about 1GB and contains the word 'thumbdata." The exact file name will vary.
After I did this, image viewing apps like Gallery operated just fine, with no apparent slowdown from the loss of this file.
In this way I freed up 1GB on my Android v4 tablet, 1GB on my Android v4 phone, and 750MB on an older Android v2 phone.
Keeping the 1GB Free
Because .thumbdata is a system file, Android recreates it. Indeed, you may find more than one copy in the .thumbnails folder, if you have reinstalled Android or similarly redid the system in some way.
To keep Android from creating the 1GB file anew, we need to create a dummy file that fools Android. In short, we create a text file with a text editor, and then move it to the thumbnails folder. Here are the steps to doing this:
1. Use File Manager to determine the exact name of the thumbnail index file. On one of my Android devices, the name is .thumbdata3--1967290299. Write it down.
2. Start a text editor or word processor on the Android, and then create a new text file.
3. Use the Save As command to save the file in the DCIM folder. (We move it to the .thumbnails folder in a later step.) Save it with the same name at that index file, such as ".thumbdata3--1967290299". Now, depending on the text editor's capabilities, it might not allow the "." prefix or a blank extension. Thus, you might end up with thumbdata3--1967290299.txt as the file name. We fix this in a later step.
4. Exit the text editor, and then switch to File Manager. Now, it is important you use a file manager like Rhythm Software's File Manager app, because it does what some others cannot: it can (a) rename file extensions and (b) access hidden folders.
5. In File Manager, navigate to the \DCIM\ .thumbnails folder. If the thumbdata3 file is there again, erase it again.
6. Move up a level to the \DCIM folder, and then right-click the thumbdata3--1967290299.txt file name. ("Right click" means hold your finger down on the name until a menu appears.)
7. From the menu, choose Rename, and then rename thumbdata3--1967290299.txt to .thumbdata3--1967290299 -- (a) add the dot (.) to the start of the file name, and (b) erase the ".txt" from the end of the file name.
8. Click OK (or Rename) to finish renaming.
9. Right click the file name, and then choose Move (or Cut).
10. Navigate down to the .thumbnails folder, and then tap Paste.
The dummy file will now prevent Android from creating the huge index file.
Awesome! THANKYOU SO MUCH! This was easy and it worked. 1200 MB free! I feel like I just won the lottery. I'm sharing this link with everyone.... just as soon as I catch my breath from dancing around my living room.... YES!
Posted by: Natalie Beumer | Jan 04, 2014 at 09:01 AM
Hello.. well your technique has at least removed the thumbdata file but it doesnt have effect on my memory..
previously, my phone was having a free space of approx 900 MB. now even after removing 2 thumbdata files of apporx 450 MB its still shows 1.0 GB free space in my phone..
it should be around 1.8 GB ..
can u help me..
thank u..
Posted by: D | Jan 07, 2014 at 11:06 PM
I think the thumbnail file starts growing again.
Posted by: Ralph Grabowski | Jan 08, 2014 at 06:47 AM
My phone is Sony xperia sp. The thumbnail file keeps on growing again. What to do?
Posted by: AKHILESH M.Y | Jan 25, 2014 at 08:09 AM
My phone eon't ler me create a file with the same name. :(
Posted by: Mimz | May 14, 2014 at 03:44 AM
Thanks for the support . It helped me to get extra 2.5 GB space internal memory. Great article dude... :) Pandu
Posted by: Kamal | Jun 10, 2014 at 07:19 AM
Whoa! I cleared 1.8 GB of space!! There were two thumnail files.
Thanks for sharing!
Posted by: mehul1313 | Jun 25, 2014 at 10:44 PM
It don't last.
The file gets bigger after a while (a few days)
Posted by: Left | Jul 11, 2014 at 09:38 AM
Thanks but I'm using nexus5& 7 the file come back after you view your gallery again .there's got to be a way cause I was 5to 8 GB with this .you find another way please let me not thanks
Posted by: ldog | Jul 17, 2014 at 04:38 PM
Can u believe how much data I had 9 gb. Yes ur right why android is doing this. Pls. Remove this bug.
Posted by: samfhisher | Oct 29, 2014 at 09:02 PM
I have Sony Xperia L. Above procedure of deleting thumnail file & creating dummy file with same name works only for 2-3 days, the mobile agains creates thubmnail file of 2gb. Is there any permanent solution to this?
Posted by: Prashant | Nov 02, 2014 at 08:07 PM
Guys I renamed parent '.thumbnail' folder to '.thmbnailqq' & this itself solved this problem :-) try it out.
Posted by: Naveen | Nov 13, 2014 at 01:25 AM
That was the best instruction for a slightly technical programmer-y process I've ever seen in the history of the internet!
Thank you, kind genius.
Followed your steps to a T and, if that thumbnail creation business stops, you just got me back 3.2gb on my annoying Nexus 4--Don't get me wrong, I love the phone, but the no external memory business has been such a pain over the last year that I'm probably ditching Google devices.
I would love recommendations on possible replacement phones, as I am due for a new one and, as I said, am not interested in phones that limit you to XXgb+Cloud. I shudder to think how much time I've spent managing storage capacity issues on the Nexus 4. Never again!
Posted by: Jake Epping | Nov 30, 2014 at 10:52 AM
When I even take a screen shot the same dummy file I made just grew back in size and toke up back all my memory again pls help!!!!!
Posted by: kiddymond | Dec 06, 2014 at 08:54 PM
Also, move any downloaded files over to your SD card. I had this problem because I kept downloading music and movies. Also deleted the thumbnail files but it didn't really show that I made space just yet maybe because I haven't disconnected it yet.
Posted by: jesse | Dec 12, 2014 at 12:01 AM
For deleting the thumbnails you need to follow the following steps no need to download any app for it.
1) create a new folder on your desktop, inside that folder create a text document and rename it as .file
2) make as many text document files with extension as .file as there are .thumbnail files under your DCIM folder => .thumbnail files and rename the text document files with exactly the same name as .thumbnail files (or you can make some text document files and rename them again and again with the new .thumbnail files).
3) delete all the original .thumbnail files and replace it with the new text document files that you made with the extension .file
4) reboot your phone and you are done.
Posted by: piyush | Jan 15, 2015 at 03:46 AM
Finally! Something that worked. I have trawled the internet for a workaround with this thumbnail problem and I was getting to the point of sending my phone back I was so frustrated with this. I am not a techie in any way shape or form and your instructions were easy to follow and it has actually worked. So relieved. Can't thank you enough :)
Posted by: Sylvergrunge | Jan 28, 2015 at 04:23 AM
I'm using Thumb Space, from the Google Play store.. it does the job with one click.
Posted by: David | Jan 31, 2015 at 04:17 AM
to clean up your camera roll, use this app:
http://www.bitfidence.com/isweep-app
Posted by: Alex | Mar 09, 2015 at 12:41 AM
I always delete thumbnails even before, but to my surprise, a new folder named .dthumb (file extensions) exist. What file extension is this and can i delete them without affecting my android phone?
Posted by: george | Apr 19, 2015 at 02:28 AM
I've just deleted my two .thumbdata files and replaced them with dummy .txt files with the same name. I was expecting a reduction of 2.67GB yet I've only managed to get a reduction less than 100MB.
What did I not do right?
Posted by: Bawuor | May 30, 2015 at 12:07 AM
THANK YOU SO SO MUCH, This has been Melting my brain for weeks. ALL my Book Covers where thumbnailed!!!!
Posted by: Pól | Jun 28, 2015 at 01:35 PM
One addition: It won't work to put a FILE with the same name as the .thumbdata file!
The system/some apps might remove the ReadOnly attribute and start to recreate the thumbdata files...
The solution that SAID to work (didnt try myself) is to create a FOLDER with the same name instead.
J.F.Y.I
Posted by: Sharkware | Jul 10, 2015 at 04:33 AM
Thanks for sharing.
Posted by: sabumarar | Sep 18, 2015 at 09:11 AM
Even after doing this if u check ur device storage in the settings menu the amount of free space will be the same as it was before. To remove that file u have to restore or mobile to factory settings.
Posted by: Tx9pro | Sep 23, 2015 at 11:36 PM
It's a sparse file. Depending on the file system, it may or may not actually free significant storage space. FAT32 doesn't support sparse files, and EXT does.
Posted by: Marcelo | Oct 31, 2015 at 02:02 PM
Doesn't work for me.
Refuses to save a file starting with a period. "must enter a filename" error.
Posted by: asfddfg | Oct 31, 2015 at 06:19 PM
I saw this on another website and it worked perfectly for me and all the folks I work with...
1.First, delete .thumbnails folder from DCIM folder
2.Then in DCIM folder create file with name '.thumbnails'
You are done.
Notes: Create a file, not a folder. If you don't have file manager, then download ES file manager from Play Store for free.
Posted by: David Singer | Nov 12, 2015 at 07:57 AM
Thanks for this, I spent ages trawling through forums without finding any help. I tried both methods listed on here. I deleted the thumbnail files and created a dummy empty file. However, this fills up again when you next view your gallery. But, so far, by replacing the folder .thumbnails with a file named .thumbnails the gained space is still there after viewing my gallery.
I did this by plugging my phone into my laptop and using wordpad to create the .thumbnails file (it didn't mind creating a file beginning with the . )
next I used file explorer to access and delete then replace the .thumbnails folder with the .thumbnails file.
after safely removing the phone from the laptop, I first took a photo to start the gallery search (it wasn't there when I first looked) It goes a bit weird flashing on and off your photos for a while, then its perfectly ok
so. thanks again.
Posted by: Cis W | Nov 18, 2015 at 03:08 AM
Hi. The thumdata occupies some 3 GB on my phone. I have a Sony Xperia Z. I have tried deleting the files many times. It's no big deal. But the problem is that no space is freed up. Can anyone help me with this?
Posted by: Mehdi | Jan 05, 2016 at 07:41 AM
On some Android systems, the 1GB cache is removed only temporarily.
Posted by: Ralph Grabowski | Jan 05, 2016 at 07:52 AM
I fixed this on my Huawei by disabling the Gallery and Camera App and getting a third party one - Open Camera and Quickpic. The stock gallery app is the one creating that 3gb thumbnail file.
Posted by: Steve T | Feb 04, 2016 at 05:23 AM
Just deleted the .thumbnails folder and got 1.6gb back. I didn't replace the folder or file and tried it out with a pic and it was still gone when I checked. Will try replacing it with a file or folder if it turns up again.
Thanks for the tip!
Posted by: Richard | Aug 05, 2016 at 09:05 PM
I did this, replace the file with a dumb text file but the system overrides it, gaining 1gb again. Any comment? Cheers.
Posted by: Nick | Jan 25, 2017 at 12:29 PM
The solution is to clear the cache from Settings; for some reason, simply
erasing the file does not work.
Go to Settings, then tap Storage. Tap Cached Data
and then tap OK.
Posted by: Ralph Grabowski | Jan 25, 2017 at 12:58 PM
I can't find the "Cache Data" button to clear it... :(
(I have a Samsung Galaxy S3 mini)
Posted by: Nick | Jan 25, 2017 at 03:36 PM
I have a HTC one S and I found in the .thumbnails folde, besides .thumbdata3--1967290299 and another folder, many many small pictures around 20kb each. What to do with them?
Posted by: FilipC | Feb 21, 2017 at 09:32 AM
It's not real disk space. Erasing thumbnails won't give you anymore usable disk space.
Posted by: Daniel | May 08, 2017 at 01:38 PM
Didn't work for me. :(
I did mine with a desktop, because I don't have the gear to do it all on my phone. I tried, but as noted, Android (4.4.2 on a Verizon LG Optimus Exceed 2) won't let me add the period/dot at the front. I opened Notepad, Save As... .thumbdata3[###...] and used All Files format to leave it formatless; 0B file size. I saved it to my SD card, then put that back in my phone and moved to and overwrote in Internal Storage > DCIM > .thumbnails. After only a few minutes, when I took a photo, Android had overwritten them (I have 2 .thumbdata3... files).
Any ideas what went wrong, how to correct? I don't have a Gb tied up with them, but I want my 100+Mb. Thanks.
PS: Maybe link to a copy of one that's worked and folks can just DL and Move if they have the same file name (mine are .thumbdata3--1967290299 and .thumbdata3-1763508120 with "1967..." storing nearly all of it. Note the second file has only one hyphen.)
Posted by: TJ | Jul 15, 2017 at 09:43 PM
@Daniel Uh, yeah, it's real disk space and deleting all my 'thumbs' allowed me to install an app that wouldn't before.
Posted by: TJ | Jul 15, 2017 at 09:47 PM
@FilipC My personal experience is that you can delete them all, and temporarily gain all that space. Android will recreate ones for images still on your device when you view them, the rest will stay deleted.
Posted by: TJ | Jul 15, 2017 at 09:54 PM
By creating the Dumbing file, does this mean you have to move your pictures in their manually since the Android phone won't see it...?
1) I have another issue maybe you can help me with ? I have a Galaxy Note 4 and when I use a card reader to check pictures from my Trail Camera's and want to save them in folders I made just for them,, why does it always happen that in a couple hrs I have all the pictures I saved in separate folders for separate Trail Camera's end up in my Gallery ?
2) And when I delete them in my Gallery and go look in my folders, they were Deleted also ? I thought these phones were like computers, but for some reason it's not staying in the folder I intended them to be in ?
Can you help me , Please ?
Posted by: Harry Hewko jr | Jul 20, 2017 at 04:05 PM
The Gallery app might have a setting for you to specify which folders it should see.
If not, I highly recommend QuickPic app, which lets you specify folders to view, as well as utilities such as renaming pictures, moving them to other folders, and so on.
TIP: I take a picture of the WiFi box's SSID and password, and then rename the picture to remind me whose WiFi it is. Then I move the picture into a folder I named 'WiFi."
Posted by: Ralph Grabowski | Jul 20, 2017 at 04:25 PM
One better way is not to remove the .thumbnails, but move it to your SD card which normally contains huge free space. This can be done by creating a symbolink folder pointer from your device space to your sd card.
This can be done via terminal for experts, but a fast and easy way is to download Folder Mount, but you must have root access. I guess this can be done without root if you can do it manually via a terminal, try searching create symbolink on linux/android you must find couples of methods.
Anyway, with Folder Mount, go in "List of Pairs" and create a new pair (+) icon. Set a name, like DCIM thumbs, locate source folder. Let it decide the destination folder, but if you have already moved medias of DCIM to your SD Card, then add a sufix with the folder name, like DCIM_thumbs. That's it, it will prompt you to move files. Your big .thumbnails will be moved. Then activate the Pair by sliding the on/off later.
If you want to pairs more than 3 folders, you will need to buy the app. It's limited to 3.
Another interesting soft you can use if Link2SD, you can move mostly all apps to your SD card. Be careful, do not move critical apps or widgets. It can cause other softwares to malfunction. But you can literally get lot of space, you bypass the safe moveabe apps with it.
Posted by: Presley | Jul 02, 2018 at 11:35 AM
Thanks for this post.I need more details for Keeping the 1GB Free?
Posted by: AnjanaDhanvi | Jul 26, 2019 at 12:32 AM
Recently, a second dcim/thumbdata4 file appeared on my Android. Can I delete one of them? And if so, which one should I delete?
Posted by: Paula Gomes | Sep 14, 2019 at 10:24 AM
I am sad to report that this tip works only temporarily. Android sets it up the thumbnail folder again with the next time photos are taken or images added to the phone.
The solution, quite frankly, is to buy a new, mid-range phone with huge memory. For instance, I got a three-year-old ASUS Zenfone Zoom with 128GB built-in for $300 from Staples.ca for my dad.
Posted by: Ralph Grabowski | Sep 14, 2019 at 10:37 AM
IT WORKS!!!!
Firstly, go to your computer. Open MS Word, create blank page.
Save the as "thumbdata3--1967290299.doc" [ default file extension is (.doc or .docx) ]
Go to folder, retrieve "thumbdata3--1967290299.doc" and rename to ".thumbdata3--1967290299" (before thumbdata3 there is a DOT)
Save it ( .thumbdata3--1967290299)
Go to the file properties and tick ReadOnly. Apply and Save
Send it to your cellphone.
Delete ".thumbdata3--1967290299" in your cellphone folder (File Manager, DCIM, .thumb folder)
Restart your cellphone
Go to your File Manager, move that ".thumbdata3--1967290299" you created from Computer (as ReadOnly), copy or move it to DCIM-.thumb folder.
DONE
Posted by: Gladwin Marshall Maphuti | Mar 08, 2020 at 06:43 AM
hello friend
thank you for the detailed post.
i did it, but however changing two 3.7 gb file for 1 byte files should be significant, no storage counter changed.
secondly, unfortunately the camera overwrote the 1 byte file i created.
probably, the solution should involve deleting some pictures from the device,
but care should be taken to remove only the device copy.
my phone is an android 6 kyocera duraforce pro e6820.
Posted by: Alex Bodnaru | Apr 24, 2021 at 05:21 AM