System.out.format("Cleanup autoscale %n");
// Remove ALL policies and groups with that name
for (GroupState g : groupApi.listGroupStates()) {
PolicyApi pa = autoscaleApi.getPolicyApiForZoneAndGroup(ZONE, g.getId());
for(ScalingPolicy p : pa.list()) {
if(p.getName().equals(NAME)) {
System.out.format("Found matching policy: %s with cooldown %s%n", p.getId(), p.getCooldown());
String policyId = p.getId();
if (!(p.getTarget().equals("0") && p.getTargetType().equals(ScalingPolicyTargetType.DESIRED_CAPACITY))) {