Guides

Delete all photos on a jailbroken ipad without itunes


 

1. Requirements

  1. A jailbroken ipad

  2. OpenSSH installed on your iPad. If you don't, get it from the Cydia store.

  3. Know how to connect your iPad via SSH. The default login details are username:root, password:alpine.



2. Shut down photo app

Make sure you shut down the Photo app on your iPad including deleting it from the multitask bar. DO NOT start the app until you are told to do so otherwise you will need to start this process again. Know how to connect your iPad via SSH. The default login details are username:root, password:alpine.

 

3. Delete synced photos

There are 2 types of photos on iPad. The first one is synced photos: these photos are synced from your Computer via iTunes. You normally need iTunes to delete these photos. They are the targets of this article and I will show you how to delete them in this section.

There are 2 things we need to do: delete the photos themselves and delete the database files that manage these photos.

 

3.1 Delete photo files

Synced photos are stored at the following directory on your iPad:

/private/var/mobile/Media/Photos

You can either delete this directory completely by running this from SSH:

$ rm -r /private/var/mobile/Media/Photos

 

Or better to rename it just in case anything happens, you can revert it. From SSH:

$ cd /private/var/mobile/Media

$ mv Photos old_Photos

 

Don't worry about recreating an empty "Photos" directory. It's not needed.

 

3.2 Delete photo database files

Photo and album structures on iPad are managed by 2 SQLite database files:

/private/var/mobile/Media/PhotoData/Photos.sqlite

/private/var/mobile/Media/PhotoData/PhotosAux.sqlite

 

Similar to the above case, you can either delete them:

$ cd /private/var/mobile/Media/PhotoData

$ rm Photos.sqlite

$ rm PhotosAux.sqlite

 

Or rename them:

$ cd /private/var/mobile/Media/PhotoData

$ mv Photos.sqlite old_Photos.sqlite

$ mv PhotosAux.sqlite old_PhotosAux.sqlite

 

4. Delete camera roll photos

The second type of photos is Camera Roll photos: these are photos created from applications on your iPad. They are saved in the Camera Roll album and can be easily deleted by using the built-in functionality of the iPad. But if you want, you can also include them in this removal process. Read on to see how to do so, otherwise skip to step 6.

 

Camera Roll photos are stored at the following directory on your iPad:

 

/private/var/mobile/Media/DCIM

 

To delete these photos as well, do this from SSH:

$ rm -r /private/var/mobile/Media/DCIM

 

OR rename it:

$ cd /private/var/mobile/Media

$ mv DCIM old_DCIM

 

5. Start photo app

Now you can start the Photo App on your iPad. This time you should see only the Camera Roll album left on your iPad. If you did step 5 above as well, you will see no photos.

When you first start the app, it will be a bit slow and you will see a message saying "Updating Library". This is normal because it needs to recreate the DB files that you deleted above.

 

6. Clean backups

If you chose to rename the files and directories in above steps instead of deleting them, now you can delete those backups and use those specious spaces for your new photos!

 

Contact Details

Comm-Co BV
Kreekzoom 9 4561 GX Hulst
Tel : +31114 370030
Fax : +31 114 370029
E-Mail : info<at>comm-co.com

 

Opening hours:
Monday:                   13:00 - 17:00 GMT+1
Tuesday to Friday: 09:00 - 17:00 GMT+1

Live Chat

  •  
LiveZilla Live Help
 

Like us on Facebook



Shipping WorldWide

Twitter Show

By A Web Design Company

(C) 2011 www.Comm-Co.com by Comm-co
EcommshopRuggedshop.nlAtexshop | Wavecom | Comm-co Sitemap |  Eyecctv | Webpainter | Wavecomblog | Remote Support