Mac – simply manually delete individual Time Machine backups from the Finder or command line

snow leopardtime-machine

I have moved from a Mac running Snow Leopard to a new Lion machine. Since there was a lot of cruft on the old machine, I set up the new one from scratch, only copying the data over I need. I still want to retain the Time Machine backup of my old machine for a while in case I missed something. That backup spans many months though and is huge. I really just need the latest backup from it, not its whole history.

Is it safe to simply open the Time Machine sparsebundle in Finder or on the CLI and remove the oldest folders? Or should I be using some Time Machine interface or tool to do so? I don't want to do it via the Starfield view, since it'll take me ages to click back and forth and delete each backup individually.

Best Answer

tl;dr - It's safe to delete in whatever way you choose.

The only conceivable problem would be if Time Machine was trying to prune a backup at the same time you were deleting, so maybe turn off Time Machine for the duration of your clean up if you're not using the built in delete button.

enter image description here


You can use tmutil delete in Lion to safely delete backups. The benefit of this is the deletion happens more silently in the background. The downside is the UI isn't speedy for deleting more than one snapshot at a time. In practice, you have to be there to attend multiple deletions.

Don't worry about the internals of how files are linked or stored - yes most of the files in most of the backups are hard links, but to clean these up, you have to delete things folder by folder. The system will handle decrementing the link count so there's no better or worse way to go here.

It is also safe to simply remove them via Finder or any other method - just be patient as each backup contains a full set of directory entries for each file. My (worst) record is 4 days to delete through finder a batch of unwanted backups.

Good advice might be to start small if you can't leave your mac on overnight.

You won't lose any data unless you are deleting the last copy of a version of some file. You don't get any warnings, it will get deleted - this is the same whether you use Time Machine itself, or Finder or rm in some terminal script.


As a brief aside - Why do you want to do this? Time Machine automatically prunes old backups when you're getting low on space. I've found it very comforting to just clone my Time Machine drive to a cheap USB external drive and put it on the shelf. (or make this the drive on the shelf and use it as an excuse to get a new drive) Perhaps it's the perfect pack-rat-keep-everything verses if-you-don't-need-it-now's-the-time-to-delete-it test for Mac users.