# File lib/capazon/capistrano_plugin.rb, line 40
  def delete_keypair(auth,keypair_name)
    amazon = connect(auth)
        
    raise Exception, "Keypair #{keypair_name} does not exist." if amazon.describe_keypairs(keypair_name).parse.empty?
    keypair_response = amazon.delete_keypair(keypair_name).parse.to_s
    raise Exception, "Failed Authorizing Web Access" unless keypair_response == "Keypair deleted."
    puts "Keypair \"#{keypair_name}\" deleted"
  end