Box.V2.Managers.BoxFoldersManager.PurgeTrashedFolderAsync C# (CSharp) Méthode

PurgeTrashedFolderAsync() public méthode

Permanently deletes a folder that is in the trash. The folder will no longer exist in Box. This action cannot be undone.
public PurgeTrashedFolderAsync ( string id ) : Task
id string Id of the folder
Résultat Task
        public async Task<bool> PurgeTrashedFolderAsync(string id)
        {
            id.ThrowIfNullOrWhiteSpace("id");

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


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

            return response.Status == ResponseStatus.Success;
        }