#!/bin/bash

ec2_dir=".ec2"

echo "Remove keypair? (yes/no)"
read should_remove_keypair

if [ $should_remove_keypair = "yes" ]; then
  echo "What is the name of the keypair to remove?"
  read keypair_name
  source use-ec2
  $EC2_HOME/bin/ec2-delete-keypair $keypair_name
fi

sudo rm /usr/local/bin/goec2
rm -rf ~/$ec2_dir

