Function etcd::kv::delete [] [src]

pub fn delete<C>(
    client: &Client<C>,
    key: &str,
    recursive: bool
) -> FutureKeyValueInfo where
    C: Clone + Connect

Deletes a node.

Parameters

  • client: A Client to use to make the API call.
  • key: The name of the node to delete.
  • recursive: If true, and the key is a directory, the directory and all child key-value pairs and directories will be deleted as well.

Errors

Fails if the key is a directory and recursive is false.