Box.V2.Managers.BoxFilesManager.RemoveWatermarkAsync C# (CSharp) Method

RemoveWatermarkAsync() public method

Used to remove the watermark for a corresponding Box file.
public RemoveWatermarkAsync ( string id ) : Task
id string Id of the file.
return Task
        public async Task<bool> RemoveWatermarkAsync(string id)
        {
            id.ThrowIfNullOrWhiteSpace("id");

            BoxRequest request = new BoxRequest(_config.FilesEndpointUri, string.Format(Constants.WatermarkPathString, id))
               .Method(RequestMethod.Delete);

            IBoxResponse<BoxWatermarkResponse> response = await ToResponseAsync<BoxWatermarkResponse>(request).ConfigureAwait(false);

            return response.Status == ResponseStatus.Success;
        }