1 amazon.s3.deleteBucket
Deletes the specified bucket. All objects (and all object versions, if versioning was ever enabled) in the bucket must be deleted before the bucket itself can be deleted. Only the owner of a bucket can delete it, regardless of the bucket's access control policy.
<amazon.s3.deleteBucket
bucketName='bucketName'
force='force'
access-key='access-key'
secret-key='secret-key'
region='region'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
AbucketName | String | Name of the bucket | |||
Aforce | Boolean | no | True to force deletion of all Bucket items | ||
Aaccess-key | String | The AWS access key | |||
Asecret-key | String | The AWS secret access key | |||
Aregion | String | Sets the region to be used by the client. This will be used to determine both the service endpoint (eg: https://sns.us-west-1.amazonaws.com) and signing region (eg: us-west-1) for requests. If region is not explicitly provided as an attribute the DEFAULT_REGION_PROVIDER is consulted. |
Example
Copy
<xsql-script> <body> <println><amazon.s3.deleteBucket bucketName='testjabbucket' /></println> </body> </xsql-script>
Which prints in standard output:
Copy
0