r/jailbreak•
pponso1

Deleting 1,000 images is best done using 'rm'; but the thumbnails still exist in Photos.app ... help?

tap, tap, tap.... 1,000 times is less than ideal when getting rid of that many photos. rm-ing the photos in ~/Media/DCIM/XYZAPPLE/ is way easier, but the thumbnails still exist in Photos.app.

How/where can I get those photos removed? I've search the file system for thumbs/relevant sqlite databases, but I've come up empty handed.


Does any one know a way to clear those photos out?

Posted Dec 8, 2013, 6:58 PM UTC

2716
esmthiPod touch 1st gen•

icleaner will wipe the caches

10
pponso1OP•

Thanks. Tried icleaner and they're still in there. :( unless I have it configured wrong. Have you used it for this purpose?

3
esmthiPod touch 1st gen•

I haven't, I just thought it'd get rid of thumbnail caches

1
pixie_ryniPod touch 5th gen, iOS 8.1.2•

I've found what seems to be a few relevant locations. I have no idea what the effects of removing them are so I will check for any negative effects before posting the locations. See below for what removing the files/folders do.

Removing then restoring databases and the .THMB folder by using iFunBox to copy them to/from my desktop seemed to trick the device into thinking there wasn't any photos on the device. After fixing the ownership issue it is working again but now I have to wait for the device to "Restore" all my photos on the device.

It would seem like just changing the ownership, opening up the photos.app, closing it by removing it from the switcher, then finally restoring the ownership and opening up the app should work.

The databases are located at: /User/Media/PhotoData/Thumbnails/1XXx1XX.ithumbs where 1XX is either 120 or 158. The thumbnail folder is located at: /User/Media/DCIM/.THMB

The ownership should be mobile:mobile and you use the chown xxx:yyy file where xxx is the user, yyy is the group, and file is the path to the file.

EDIT: Updated info

EDIT 2: It found all my photos, but it now doesn't show them organized. Just Camera Roll and Photo Library exist, no other folders including the organizations I've made before syncing them to iTunes.

3
pponso1OP•

This is the correct answer. But there is potential to mess up the thumb dbs, so back-up beforehand.

1
Jeskid14iPod touch 4th gen•

Have you tried PhoneClean? It says that it can delete any type of junk file.

2
Xenophule•

iPhoto app will now delete photos; it's how I now delete all photos on my jailed phone. Maybe this will help as an alternative :)

1
iPhonediPhone 5•

I use this after uploading all my photos to my HD when my gigs get full

1
um0p3pIsdniPhone 5•

You could try to just delete the photo album(s) in the photos.app?

1
pponso1OP•

like one at a time? if so I'm looking for a way around that. We're talking tapping thousands of photos.

1
um0p3pIsdniPhone 5•

I guess I thought they were in separate albums, not the camera roll.. My apologies.

1
pponso1OP•

Oh yeah. They're screenshots and automatically go to the Camera Roll which can't be deleted as an album. But your suggestion does raise the question--can screenshots be routed in a different album...?

1
mdancykier•

Download IFTTT from the AppStore and browse recipes for screenshots new album. I dont recall exactly but it might just copy it into a new album so that would be no help…

1
JonLuca•

You could just plug it into a computer and delete them using the filebrowser?

1