/// <summary> /// Deletes the item with the matching identifier from HBase. /// </summary> /// <param name="identifier">The identifier.</param> public virtual void DeleteItem(Identifier identifier) { string resource = ResourceBuilder.BuildDeleteItem(identifier); IRestResponse response = SendRequest(Method.DELETE, resource, Options.ContentType); ErrorProvider.ThrowIfStatusMismatch(response, HttpStatusCode.OK); }
T DeleteItemInternal <T>(Identifier identifier, Func <Method, string, string, string, string, HttpStatusCode[], T> action) { string resource = ResourceBuilder.BuildDeleteItem(identifier); return(action(Method.DELETE, resource, Options.ContentType, null, null, new[] { HttpStatusCode.OK })); }