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

PurgeTrashedAsync() public method

Permanently deletes an item that is in the trash. The item will no longer exist in Box. This action cannot be undone.
public PurgeTrashedAsync ( string id ) : Task
id string Id of the file.
return Task
        public async Task<bool> PurgeTrashedAsync(string id)
        {
            id.ThrowIfNullOrWhiteSpace("id");

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

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

            return response.Status == ResponseStatus.Success;
        }