Delete all backups of a file on an HFS+-formatted TimeMachine volume using newer versions of macOS without TMSafetyNet.kext
1
vote
0
answers
60
views
I'm trying to delete all backups of specific items backed up with TimeMachine on a backup drive formatted as HFS+ but using a Mac running Ventura.
For a long time this was possible using the method described
[here](https://apple.stackexchange.com/questions/333767/delete-all-backups-of-specific-file-folder-with-tmutil) and
[here](https://apple.stackexchange.com/questions/180214/is-it-possible-to-use-tmutil-delete-or-another-command-to-delete-one-file-from) :
The gist of it is don't bother with
tmutil
, use rm
with the bypass
helper script from TMSafetyNet.kext
. I've used it successfully many times.
Unfortunately, with newer versions of macOS TMSafetyNet.kext
is gone -- not sure when exactly it disappeared, but it's no longer there as discussed
[here](https://apple.stackexchange.com/questions/459407/macbook-pro-m2-missing-tmsafetynet-kext) (in a different context).
Now, I've tried the following:
First, using what seems to be the official method as described in man tmutil
I have tried:
sudo tmutil delete -d /Volumes/ -p /Volumes//Backups.backupdb///Macintosh\ HD/path/to/file/
I get: Invalid deletion target (error 22)
, Total deleted: Zero KB
Now, the same backup from which I want to delete a specific file also has a backup of my system files, including TMSafetyNet.kext
. I thought let's try the old method, pointing it to the backup of the bypass
helper script:
sudo /Volumes//Backups.backupdb///Macintosh\ HD/System/Library/Extensions/TMSafetyNet.kext/Contents/Helpers/bypass rm -rfv /Volumes/ -p /Volumes//Backups.backupdb///Macintosh\ HD/path/to/file/
It fails, because, as @nohillside points out in the comment below, TMSafetyNet.kext is not loaded.
How can I delete all backups of a file on an HFS+-formatted TM volume on newer machines running a macOS version that no longer has TMSafetyNet.kext
?
Asked by jan
(842 rep)
May 18, 2025, 09:56 PM
Last activity: May 24, 2025, 01:53 PM
Last activity: May 24, 2025, 01:53 PM