def delete_policy(name, policy_name, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 if (not exists(name, region, key, keyid, profile)):
  return True
 try:
  conn.delete_lb_policy(name, policy_name)
  log.info('Deleted policy {0} on ELB {1}'.format(policy_name, name))
  return True
 except boto.exception.BotoServerError as e:
  log.debug(e)
  msg = 'Failed to delete policy {0} on ELB {1}: {2}'.format(policy_name, name, e.message)
  log.error(msg)
  return False

def delete_policy ( name , policy_name , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) if ( not exists ( name , region , key , keyid , profile ) ) : return True try : conn . delete_lb_policy ( name , policy_name ) log . info ( 'Deleted policy {0} on ELB {1}' . format ( policy_name , name ) ) return True except boto . exception . BotoServerError as e : log . debug ( e ) msg = 'Failed to delete policy {0} on ELB {1}: {2}' . format ( policy_name , name , e . message ) log . error ( msg ) return False
delete an elb policy .