Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

What is the recommended way to get rid of a whole TimeMachine archive (aka Backups.backupdb)?

Using Disk Utility to erase the whole disk is not an option.

I moved everything to the Trash, but "preparing to empty trash" was counting files to delete forever. I cancelled at -100,000 files.

So what's the recommended way to delete huge amounts of files?

share|improve this question

2 Answers 2

up vote 8 down vote accepted

If you're comfortable with using Terminal.app (located in Utilities folder), you can try using Unix sudo rm -r <path>/Backups.backupdb command. Note that <path> is the placeholder for the path to the hard drive where your Time Machine backup is located. Please be careful with the path that you pass to this command by ensuring there is no typo.

The complete steps are:

  1. Launch Terminal.app
  2. In one of Terminal.app's window, type sudo rm -R followed by a space
  3. Use a Finder window to navigate to the Backups.backupdb folder, then
  4. Drag that folder to the Terminal.app's window of step 2, and press the Return key.
  5. You may be challenged to type the password for the admin account (which is usually the same user account that you logged into OS X).
  6. The default prompt will reappear in the Terminal.app's window when the deletion is done.

Type man rm for documentation.

share|improve this answer
1  
This is indeed the fastest way. But you'll need to run it under sudo (e.g., sudo rm -R /path/to/Backups.backupdb) –  cksum Dec 9 '11 at 21:45
    
Thanks, you're right. I've amended the answer for posterity. –  Global nomad Dec 9 '11 at 21:54

sudo rm -rf triggered an 'Operation Not Permitted' on a bunch of files. I had to use this approach: http://superuser.com/questions/162690/how-can-i-delete-time-machine-files-using-the-commandline/387464#387464

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.