/// <summary> /// Delete is used to delete a single key. /// </summary> /// <param name="key">The key name to delete</param> /// <param name="q">Customized write options</param> /// <returns>A write result indicating if the delete attempt succeeded</returns> public WriteResult <bool> Delete(string key, WriteOptions q) { return(_client.CreateOutWrite <bool>(HttpMethod.Delete, string.Format("/v1/kv/{0}", key), q) .Execute()); }
/// <summary> /// Destroy is used to destroy a given ACL token ID /// </summary> /// <param name="id">The ACL ID to destroy</param> /// <param name="q">Customized write options</param> /// <returns>An empty write result</returns> public WriteResult <bool> Destroy(string id, WriteOptions q) { return(_client.CreateOutWrite <bool>(string.Format("/v1/acl/destroy/{0}", id)).Execute()); }