Function etcd::kv::delete_dir [] [src]

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

Deletes an empty directory or a key-value pair at the given key.

Parameters

  • client: A Client to use to make the API call.
  • key: The name of the node to delete.

Errors

Fails if the directory is not empty.