Function etcd::kv::delete_dir
source · pub fn delete_dir<C>(
client: &Client<C>,
key: &str
) -> impl Future<Item = Response<KeyValueInfo>, Error = Vec<Error>> + Sendwhere
C: Clone + Connect,
Expand description
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.