command line – tmutil delete returns error 22 while deleting backups in external drive to free up space


$tmutil listbackups
/Volumes/.timemachine/96F5062D-1718-4C7F-A137-D0C6EC70AF68/2023-12-26-145443.backup/2023-12-26-145443.backup
/Volumes/.timemachine/96F5062D-1718-4C7F-A137-D0C6EC70AF68/2024-01-04-172522.backup/2024-01-04-172522.backup
.
.
.
/Volumes/.timemachine/96F5062D-1718-4C7F-A137-D0C6EC70AF68/2024-04-15-161738.backup/2024-04-15-161738.backup
/Volumes/.timemachine/96F5062D-1718-4C7F-A137-D0C6EC70AF68/2024-04-15-173852.backup/2024-04-15-173852.backup

Those were my backups in APFS-formatted external drive (those timepoints show up when I attach the external drive and enter Time Machine), but I am getting errors when using tmutil delete to remove any backup points e.g. 2023-12-26-145443.backup. The goal is to free up space in the external drive.

$ sudo tmutil delete /Volumes/.timemachine/96F5062D-1718-4C7F-A137-D0C6EC70AF68/2023-12-26-145443.backup/2023-12-26-145443.backup
Specify either a path or a mountpoint and timestamp
Usage: tmutil delete [-d backup_mount_point -t timestamp] [-p path]
$ sudo tmutil delete -p /Volumes/.timemachine/96F5062D-1718-4C7F-A137-D0C6EC70AF68/2023-12-26-145443.backup/2023-12-26-145443.backup
Password:
/Volumes/.timemachine/96F5062D-1718-4C7F-A137-D0C6EC70AF68/2023-12-26-145443.backup/2023-12-26-145443.backup: Invalid deletion target (error 22)
Total deleted: Zero KB

The -p flag is not working. Can anyone point me to the right direction please?

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img