I use a bash one-liner for this:
psql -c '\l' | awk '{print $1}' | grep -E '.*june.*' | xargs -n 1 dropdb