s3deletebucket()

edit

deletes a bucket, this function is deprecated, use instead s3delete().

Status:

deprecated

Requires Extension: S3 Resource Extension

s3deletebucket( bucketName=string, force=boolean, accessKeyId=string, secretAccessKey=string, host=string, timeout=number );

Returns: Query

Argument Description Default
bucketName
string, required
edit

Name of the bucket to list objects from.

Alias: bucket

force
boolean, optional
edit

Also delete bucket if it has content.

accessKeyId
string, optional
edit

S3 accessKeyId, if not defined it checks the system property/environment variable for [lucee.s3.accesskeyid].

Alias: accessKey, awsAccessKeyId, awsAccessKey

secretAccessKey
string, optional
edit

S3 secretAccessKey, if not defined it checks the system property/environment variable for [lucee.s3.secretaccesskey].

Alias: secretkey, awsSecretkey, awsSecretAccessKey

host
string, optional
edit

the provider to connect, if not set Amazon AWS is used.

Alias: provider, server

timeout
number, optional
edit

timeout for this execution

10000

Examples

There are currently no examples for this function 40,126ms WARN No examples for function S3DeleteBucket

See also