Last active
November 27, 2025 09:16
-
-
Save haslo/ae9095b6526a069abfdc615fa7a70e46 to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| tmutil listlocalsnapshots / | grep "com.apple.TimeMachine" | while read snapshot; do | |
| echo "Deleting: $snapshot" | |
| sudo tmutil deletelocalsnapshots $(echo $snapshot | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{6}') | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment