Created
February 18, 2019 19:53
-
-
Save martineno/d83809558cd884c95b23ff1e319c5871 to your computer and use it in GitHub Desktop.
Quickly delete all the local Time Machine snapshots on an APFS volume
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tail -n +2 to remove the first line of the `tmutil listlocalsnapshotdates` command | |
# sort -r to start deleting the most recent ones first | |
for d in $(tmutil listlocalsnapshotdates | tail -n +2 | sort -r) | |
do | |
tmutil deletelocalsnapshots $d | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment