Skip to content

Instantly share code, notes, and snippets.

@keith
Last active September 10, 2018 23:39
Show Gist options
  • Select an option

  • Save keith/046c420953c00c83202f95b170fa0f8c to your computer and use it in GitHub Desktop.

Select an option

Save keith/046c420953c00c83202f95b170fa0f8c to your computer and use it in GitHub Desktop.

Revisions

  1. keith revised this gist Sep 10, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion delete-apps.rb
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    Spaceship::Portal.select_team

    Spaceship::Portal.app.all.collect do |app|
    print "Delete #{ app.bundle_id }? [y/N]: "
    print "Delete #{ app.bundle_id }? [y/N]: "
    delete = gets.strip.downcase == "y"
    if delete
    puts "Deleting #{ app.bundle_id }"
  2. keith created this gist Sep 10, 2018.
    13 changes: 13 additions & 0 deletions delete-apps.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    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