public async Task DeleteAsync(string name) { #region Preconditions if (name == null) { throw new ArgumentNullException(nameof(name)); } #endregion var request = new DeleteObjectRequest(client.Host, bucketName, name); await client.DeleteObjectAsync(request).ConfigureAwait(false); }
public async Task DeleteAsync(string name) { await client.DeleteObjectAsync( new DeleteObjectRequest(client.Host, bucketName, name) ).ConfigureAwait(false); }
public Task DeleteAsync(string name, string version = null) { var request = new DeleteObjectRequest(client.Region, bucketName, name, version); return(client.DeleteObjectAsync(request)); }