def delete_network_acl(network_acl_id=None, network_acl_name=None, disassociate=False, region=None, key=None, keyid=None, profile=None):
 if disassociate:
  network_acl = _get_resource('network_acl', name=network_acl_name, region=region, key=key, keyid=keyid, profile=profile)
  if (network_acl and network_acl.associations):
   subnet_id = network_acl.associations[0].subnet_id
   try:
    conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
    conn.disassociate_network_acl(subnet_id)
   except BotoServerError:
    pass
 return _delete_resource(resource='network_acl', name=network_acl_name, resource_id=network_acl_id, region=region, key=key, keyid=keyid, profile=profile)

def delete_network_acl ( network_acl_id = None , network_acl_name = None , disassociate = False , region = None , key = None , keyid = None , profile = None ) : if disassociate : network_acl = _get_resource ( 'network_acl' , name = network_acl_name , region = region , key = key , keyid = keyid , profile = profile ) if ( network_acl and network_acl . associations ) : subnet_id = network_acl . associations [ 0 ] . subnet_id try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) conn . disassociate_network_acl ( subnet_id ) except BotoServerError : pass return _delete_resource ( resource = 'network_acl' , name = network_acl_name , resource_id = network_acl_id , region = region , key = key , keyid = keyid , profile = profile )
delete a network acl based on the network_acl_id or network_acl_name provided .