Get rid of those apps in iTunes that you never sync anymore

If you’re like me, you’ve had an iPhone, iPod Touch and/or iPad for a few years now and have probably amassed a fairly big collection of apps, both free and paid. Until last year’s iOS 5, this meant having to keep a local copy of each and one of them on the computer you used to sync your iOS device.

My “Mobile Applications” folder contains 924 items, weighing a whopping 18.78 GB. iTunes only lists 920 apps, so something is out of sync already.
Obviously, I do not use that many apps. My iPhone 4 only has 163, and I could delete many of those as I don’t use them. My father’s iPad, which uses my Apple ID to get apps so that he doesn’t have to purchase the same ones I have already paid for, has about 250, most of them being games he tried once or twice and left there.

I’m about to phase out my glorious 2006 iMac in favor of a new Mac Mini and I’m going to just move the iTunes Library folder; this way, everything is retained and I don’t have to convince a brand new iTunes not to nuke the iPhone and iPad just because they have been synced to a different machines. As for the music itself, I could also use iTunes Match to carry it over, but I’d rather just drop the folder in and be happy about it. The point is that I really don’t want to waste about 20 GB on the new computer for apps I honestly don’t care about.

The most immediate method, deleting the apps from iTunes, kind of works… except that if you delete an app that’s used on your device, it will be removed from that device upon syncing. The proper way to do this would be to manually delete from iTunes the ones you’re not using. There’s a little problem with that: there is absolutely no way of knowing whether any local app is being synced to any device or not, unless you manually check whether every single app is on any of your devices. This sounds dreadful enough with my iPhone, with which I’m very familiar; doing it with my father’s iPad sounds like a nightmare.

Thankfully, after a little searching, I found the way to do it in a much easier fashion. Of course, if you follow these instructions and you delete important data or things like that, I’m not responsible. Do this at your own risk.

I’m using iTunes 10.7 on OS X 10.7 Lion, but it should be the same on OS X 10.8 Mountain Lion. When iTunes 11 is released in a few days or weeks, it’s probably going to be much different.

The first, very important thing to do is to disable automatic syncing. To do this, open iTunes’s preferences, go to Devices, and check Prevent iPods, iPhones and iPads from syncing automatically. You can do this even when your device is not connected, but I recommend doing this when it’s already connected so it’s even less likely that something goes wrong.
After you’ve made sure that the new device does not start to sync automatically, go ahead and run a full backup, just in case something goes wrong. Find your device in the sidebar, right click on it, and choose Back Up. It will take a while.
After it’s done backing it up, it’s time to rock and roll.

Click Apps in the the Library section of the side bar, and either choose Select All from the Edit menu, or hit Command-A on your keyboard. Now all your bazillion apps will be selected. You can either delete them, which I do not recommend, or you can move them to a folder. With all of them selected, just drag them into a folder you previously created with the Finder to make a manual backup of all of them. Again, it will take a while. Once all the files are safely copied, you can delete them: just press backspace on your keyboard, or choose Delete from the Edit menu. At this point your may get a scary message warning you that the apps will be deleted from all devices to which they had been copied. Confirm the deletion and move to trash; that’s why you just copied them out.

Now, here’s the nice part. With your device still connected, right click on its name in the sidebar and choose Transfer Purchases. You may be asked for your Apple ID password, and iTunes will make a local copy of all the apps that are currently on your device.
Rinse and repeat for any other extra device, and you’re done: at the end you will only have a local copy of the apps that you currently have on your devices.

If you want to be extra sure that everything has been copied correctly, you may want to run Transfer Purchases again for each device. At the end, you can safely re-enable automatic syncing. If you start the syncing procedure immediately, it should not copy (nor delete!) any apps in any direction, meaning they are already synchronized.

At this point, if you want, you can delete the backup folder you had copied your apps to when you began this whole ordeal. I’d suggest keeping them on a backup disk just in case, but unless the apps are pulled from the App Store, you can safely download them again at no extra cost at any time.

Personally, I ended up recovering about 13 GB by doing this. Not bad, considering that from my point of view those 13 GB were filled with pointless fluff!