Lucee Function Reference
s3delete()
This Function is deprecated
deletes a bucket or an object within a bucket.
Example
s3delete(string bucketName,[string objectName,[boolean force,[string accessKeyId,[string secretAccessKey,[string host,[number timeout]]]]]]):query
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
bucketName | string | Yes | Name of the bucket to delete. | |
objectName | string | No | Name of the object to delete, if not defined the bucket itself is deleted. | |
force | boolean | No | Also delete bucket if it has content. | |
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 |