How do I delete most of my time machine backups

Is there a way to delete most of my old time machine backups without doing it one at a time?

iMac, macOS High Sierra (10.13.2)

Posted on Apr 9, 2018 4:16 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 9, 2018 8:15 AM

EDIT ---- Deleting backups is likely to gain less space than you might expect, since files that do not change do not get copied over and over. So don't expect to get a lot space back.


You can do this with tmutil in the Terminal. Be CAREFUL. Issuing the wrong command can result in data loss.


First, it is easy to check which backups exist:


tmutil listbackups


This will produce a list of the backups, looking something like:


User uploaded file


For example, if your TM drive is called "TM", and your mac is called "mymac", a backup done yesterday at noon will appear as

/Volumes/TM/Backups.backupdb/mymac/2018-04-08-120000


Now for the dangerous part. It requires the sudo command to get admin privileges, so it can only be executed in an admin account (if yours is the only account on your mac, it is automatically an admin account).


To delete one or more TM backup, you use tmutil with the delete verb.


For example:


sudo tmutil delete /Volumes/TM/Backups.backupdb/mymac/2018-04-08-120000


You will be asked to enter your password. While typing nothing will appear onscreen. Then after pressing enter the command is executed.


You can delete more than one backup at a time, but CAUTION --- This is dangerous!!!

For example, to delete all backups from August last year, you can type


sudo tmutil delete /Volumes/TM/Backups.backupdb/mymac/2017-08-*


PROBLEM IS if you make a mistake you may delete a lot more or, something different, than intended.


USE AT YOUR OWN RISK

5 replies
Question marked as Top-ranking reply

Apr 9, 2018 8:15 AM in response to SteveShapiro

EDIT ---- Deleting backups is likely to gain less space than you might expect, since files that do not change do not get copied over and over. So don't expect to get a lot space back.


You can do this with tmutil in the Terminal. Be CAREFUL. Issuing the wrong command can result in data loss.


First, it is easy to check which backups exist:


tmutil listbackups


This will produce a list of the backups, looking something like:


User uploaded file


For example, if your TM drive is called "TM", and your mac is called "mymac", a backup done yesterday at noon will appear as

/Volumes/TM/Backups.backupdb/mymac/2018-04-08-120000


Now for the dangerous part. It requires the sudo command to get admin privileges, so it can only be executed in an admin account (if yours is the only account on your mac, it is automatically an admin account).


To delete one or more TM backup, you use tmutil with the delete verb.


For example:


sudo tmutil delete /Volumes/TM/Backups.backupdb/mymac/2018-04-08-120000


You will be asked to enter your password. While typing nothing will appear onscreen. Then after pressing enter the command is executed.


You can delete more than one backup at a time, but CAUTION --- This is dangerous!!!

For example, to delete all backups from August last year, you can type


sudo tmutil delete /Volumes/TM/Backups.backupdb/mymac/2017-08-*


PROBLEM IS if you make a mistake you may delete a lot more or, something different, than intended.


USE AT YOUR OWN RISK

Apr 10, 2018 10:09 AM in response to Stephen Spark

It was designed to work on it's own, but doesn't always. My wife backs up her iMac up to my Synology. I have a 8 drive/20TB array for her backups. It fills up constantly, then Time Machine just stops working because the target disk is full. So in this case, I need to manually purge older backups (as much as I reject the idea, because it isn't a good idea.)


This problem isn't new, her previous 3 iMac's and my previous SAN storage arrays, TM would always fill the volume and then just stop working.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I delete most of my time machine backups

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.