File tree Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 3333 fi
3434fi
3535
36- for XID in ` diskutil apfs listSnapshots " $VOLUME " | fgrep XID| awk ' {print $3}' `
36+ # Snapshot deletion code by StarPlayrX 2020
37+ snapshots=$( diskutil apfs listsnapshots " $VOLUME " | grep +-- | sed ' s/^.\{4\}//' )
38+
39+ for uuid in $snapshots
3740do
38- echo $XID
39- diskutil apfs deleteSnapshot " $VOLUME " -xid $XID
41+ printf ' 📸 Attempting to delete snapshot => '
42+ echo $uuid
43+ echo ' '
44+
45+ diskutil apfs deletesnapshot " $VOLUME " -uuid $uuid
4046done
Original file line number Diff line number Diff line change 1+ sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs_systemsnapshot -r com.apple.bless.837AED20-8AB1-405E-A344-77414C9CFC0D -v /Volumes/Sh1t
2+ sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs_systemsnapshot -s R.W -v /Volumes/Sh1t
3+ sudo mount -uw /
4+ sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs_systemsnapshot -v /Volumes/Sh1t -r ""
You can’t perform that action at this time.
0 commit comments