Skip to content

Instantly share code, notes, and snippets.

@taskie
Created July 24, 2015 09:41
Show Gist options
  • Save taskie/d74cb7df857c4d9daf41 to your computer and use it in GitHub Desktop.
Save taskie/d74cb7df857c4d9daf41 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
devices = `xcrun simctl list devices`.each_line do |line|
if line =~ /[^\(]+\(([^\)]+)\)/
puts $1
`xcrun simctl delete #{$1}`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment