Home > @hapoosjs/api-buckets > Buckets > clean

Buckets.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 path

Returns:

Promise<void>