Skip to content

Instantly share code, notes, and snippets.

@keith
Last active September 10, 2018 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keith/046c420953c00c83202f95b170fa0f8c to your computer and use it in GitHub Desktop.
Save keith/046c420953c00c83202f95b170fa0f8c to your computer and use it in GitHub Desktop.
A script for prompting to delete app ids from the provisioning portal
require 'spaceship'
Spaceship::Portal.login
Spaceship::Portal.select_team
Spaceship::Portal.app.all.collect do |app|
print "Delete #{ app.bundle_id }? [y/N]: "
delete = gets.strip.downcase == "y"
if delete
puts "Deleting #{ app.bundle_id }"
app.delete!
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment