# File lib/heroku/command/apps.rb, line 188
  def destroy
    app = extract_app
    info = heroku.info(app)
    url  = info[:domain_name] || "http://#{info[:name]}.#{heroku.host}/"

    if confirm_command(app)
      redisplay "Destroying #{app} (including all add-ons)... "
      heroku.destroy(app)
      if remotes = git_remotes(Dir.pwd)
        remotes.each do |remote_name, remote_app|
          next if app != remote_app
          git "remote rm #{remote_name}"
        end
      end
      display "done"
    end
  end