def delete_route(route_table_id=None, destination_cidr_block=None, route_table_name=None, region=None, key=None, keyid=None, profile=None):
 if (not _exactly_one((route_table_name, route_table_id))):
  raise SaltInvocationError('One (but not both) of route_table_id or route_table_name must be provided.')
 if (destination_cidr_block is None):
  raise SaltInvocationError('destination_cidr_block is required.')
 try:
  if route_table_name:
   route_table_id = _get_resource_id('route_table', route_table_name, region=region, key=key, keyid=keyid, profile=profile)
   if (not route_table_id):
    return {'created': False, 'error': {'message': 'route table {0} does not exist.'.format(route_table_name)}}
 except BotoServerError as e:
  return {'created': False, 'error': salt.utils.boto.get_error(e)}
 return _delete_resource(resource='route', resource_id=route_table_id, destination_cidr_block=destination_cidr_block, region=region, key=key, keyid=keyid, profile=profile)

def delete_route ( route_table_id = None , destination_cidr_block = None , route_table_name = None , region = None , key = None , keyid = None , profile = None ) : if ( not _exactly_one ( ( route_table_name , route_table_id ) ) ) : raise SaltInvocationError ( 'One (but not both) of route_table_id or route_table_name must be provided.' ) if ( destination_cidr_block is None ) : raise SaltInvocationError ( 'destination_cidr_block is required.' ) try : if route_table_name : route_table_id = _get_resource_id ( 'route_table' , route_table_name , region = region , key = key , keyid = keyid , profile = profile ) if ( not route_table_id ) : return { 'created' : False , 'error' : { 'message' : 'route table {0} does not exist.' . format ( route_table_name ) } } except BotoServerError as e : return { 'created' : False , 'error' : salt . utils . boto . get_error ( e ) } return _delete_resource ( resource = 'route' , resource_id = route_table_id , destination_cidr_block = destination_cidr_block , region = region , key = key , keyid = keyid , profile = profile )
deletes a route .