S3Manager.

DeleteAll(string, DateTimeOffset, S3Settings, CancellationToken) Method

Summary

Removes all objects from the bucket
Assembly
Cake.AWS.S3.dll
Namespace
Cake.AWS.S3
Containing Type
S3Manager

Syntax

public Task<IList<string>> DeleteAll(string prefix, DateTimeOffset lastModified, S3Settings settings, CancellationToken cancellationToken = null)

Attributes

Type Description
AsyncStateMachineAttribute

Parameters

Name Type Description
prefix string Only delete objects that begin with the specified prefix.
lastModified DateTimeOffset Only delete objects that where modified prior to this date.
settings S3Settings The S3Settings required to delete from Amazon S3.
cancellationToken CancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value

Type Description
Task<IList<string>>