public async Task <DeleteUploadPresetResult> DeleteUploadPresetAsync(string name) { using (var response = await Api.CallAsync(HttpMethod.Delete, Api.ApiUrlV.Add("upload_presets").Add(name).BuildUrl(), null, null, null)) { return(await DeleteUploadPresetResult.Parse(response)); } }
/// <summary> /// Deletes the upload preset. /// </summary> /// <param name="name">Name of the upload preset.</param> /// <returns></returns> public DeleteUploadPresetResult DeleteUploadPreset(string name) { UrlBuilder urlBuilder = new UrlBuilder( m_api.ApiUrlV .Add("upload_presets") .Add(name) .BuildUrl()); using (HttpWebResponse response = m_api.Call(HttpMethod.DELETE, urlBuilder.ToString(), null, null)) { return(DeleteUploadPresetResult.Parse(response)); } }