def acl_delete(consul_url=None, **kwargs):
 ret = {}
 data = {}
 if (not consul_url):
  consul_url = _get_config()
  if (not consul_url):
   log.error('No Consul URL found.')
   ret['message'] = 'No Consul URL found.'
   ret['res'] = False
   return ret
 if ('id' not in kwargs):
  ret['message'] = 'Required parameter "id" is missing.'
  ret['res'] = False
  return ret
 function = 'acl/delete/{0}'.format(kwargs['id'])
 res = _query(consul_url=consul_url, data=data, method='PUT', function=function)
 if res['res']:
  ret['res'] = True
  ret['message'] = 'ACL {0} deleted.'.format(kwargs['id'])
 else:
  ret['res'] = False
  ret['message'] = 'Removing ACL {0} failed.'.format(kwargs['id'])
 return ret

def acl_delete ( consul_url = None , ** kwargs ) : ret = { } data = { } if ( not consul_url ) : consul_url = _get_config ( ) if ( not consul_url ) : log . error ( 'No Consul URL found.' ) ret [ 'message' ] = 'No Consul URL found.' ret [ 'res' ] = False return ret if ( 'id' not in kwargs ) : ret [ 'message' ] = 'Required parameter "id" is missing.' ret [ 'res' ] = False return ret function = 'acl/delete/{0}' . format ( kwargs [ 'id' ] ) res = _query ( consul_url = consul_url , data = data , method = 'PUT' , function = function ) if res [ 'res' ] : ret [ 'res' ] = True ret [ 'message' ] = 'ACL {0} deleted.' . format ( kwargs [ 'id' ] ) else : ret [ 'res' ] = False ret [ 'message' ] = 'Removing ACL {0} failed.' . format ( kwargs [ 'id' ] ) return ret
delete an acl token .