#!/bin/bash if [ $# -eq 0 ]; then doctl compute droplet list echo "Run 'doctl compute droplet delete ' for the droplet you want to delete next..." exit 0 else echo "Will remove the following droplet:" doctl compute droplet list | grep $1 doctl compute droplet delete $1 fi