Home > @hapoosjs/aws-buckets > AWSBuckets > clean

AWSBuckets.clean() method

Delete all files in a bucket or a folder in the bucket

Signature:

clean(bucketName: string, folder?: string): Promise<void>;

Parameters

Parameter Type Description
bucketName string Bucket name
folder string (Optional) Optional folder or full file path

Returns:

Promise<void>