Skip to content

Instantly share code, notes, and snippets.

@Kr0n0
Created January 31, 2019 01:09
Show Gist options
  • Save Kr0n0/a98eb5141cd3d98458652aa8f9189148 to your computer and use it in GitHub Desktop.
Save Kr0n0/a98eb5141cd3d98458652aa8f9189148 to your computer and use it in GitHub Desktop.
Delete local APFS Snapshots (OSX)
#!/bin/sh
for LISTA in $(tmutil listlocalsnapshots / | cut -d'.' -f 4);
do
sudo tmutil deletelocalsnapshots $LISTA
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment