Lucee Function Reference
s3clearbucket()
Removes all objects from a bucket, unless maxage is set, in that case only objects that are older than maxage are removed.
Beispiel
s3clearbucket(string bucketName,[timespan maxage,[string accessKeyId,[string secretAccessKey,[string host,[number timeout]]]]]):void
Argumente
Die Argumente für diese Funktion sind fest vorgegeben. Ausser den nachfolgenden Argumenten dürfen keine weiteren verwendet werden.
Name | Typ | Required | Default Value | Beschreibung |
---|---|---|---|---|
bucketName | string | Yes | Name of the bucket to list objects from. | |
maxage | timespan | No | Max age of the object we keep, if not set all objects are removed. | |
accessKeyId | string | No | S3 accessKeyId, if not defined it checks the system property/environment variable for [lucee.s3.accesskeyid]. | |
secretAccessKey | string | No | S3 secretAccessKey, if not defined it checks the system property/environment variable for [lucee.s3.secretaccesskey]. | |
host | string | No | the provider to connect, if not set Amazon AWS is used. | |
timeout | number | No | 10000 | timeout for this execution |