78798081828384858687
List<HostNamePair> hostNamePairs = getHostNamesPairsFromFile(hostNamesFile); for(HostNamePair hostNamePair: hostNamePairs) hostNames.add(hostNamePair.getExternalHostName()); ec2Connection.deleteInstancesByHostName(hostNames); } } }