def remove_value(module):
 consul_api = get_consul_api(module)
 key = module.params.get('key')
 value = module.params.get('value')
 (index, existing) = consul_api.kv.get(key, recurse=module.params.get('recurse'))
 changed = (existing != None)
 if (changed and (not module.check_mode)):
  consul_api.kv.delete(key, module.params.get('recurse'))
 module.exit_json(changed=changed, index=index, key=key, data=existing)

def remove_value ( module ) : consul_api = get_consul_api ( module ) key = module . params . get ( 'key' ) value = module . params . get ( 'value' ) ( index , existing ) = consul_api . kv . get ( key , recurse = module . params . get ( 'recurse' ) ) changed = ( existing != None ) if ( changed and ( not module . check_mode ) ) : consul_api . kv . delete ( key , module . params . get ( 'recurse' ) ) module . exit_json ( changed = changed , index = index , key = key , data = existing )
remove the value associated with the given key .