Skip to content

Instantly share code, notes, and snippets.

@mr-fixit
Created January 13, 2016 18:41
Show Gist options
  • Save mr-fixit/93babda8fa0c3db4d53a to your computer and use it in GitHub Desktop.
Save mr-fixit/93babda8fa0c3db4d53a to your computer and use it in GitHub Desktop.
bulk delete ios simulators
xcrun simctl list devices | awk '/-- .* --/ { if ( $2 == "iOS" && $3 ~ /8*/ ) { inIOS = 1 } else { inIOS = 0 }}; { if ( inIOS && match($0,/\([0-9A-F\-]*\)/) ) { print substr($0,RSTART+1, RLENGTH-2) }} ' | xargs -I {} xcrun simctl delete {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment