Skip to content

Instantly share code, notes, and snippets.

@therod
Created February 27, 2018 13:56
Show Gist options
  • Save therod/d1431596b18b0dc905123c75065aa3e4 to your computer and use it in GitHub Desktop.
Save therod/d1431596b18b0dc905123c75065aa3e4 to your computer and use it in GitHub Desktop.
#!/bin/bash
## Remove all local timemachine backups
for i in $(tmutil listlocalsnapshotdates / | awk '{print $1}' | sed -n '1!p' | xargs echo); do tmutil deletelocalsnapshots $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment