1 amazon.s3.deleteObject
Deletes the specified object in the specified bucket. Once deleted, the object can only be restored if versioning was enabled when the object was deleted. If attempting to delete an object that does not exist, Amazon S3 returns a success message instead of an error message.
<aamazon.s3.deleteObject
bucketName='bucketName'
fileName='fileName'
access-key='access-key'
secret-key='secret-key'
region='region'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
AbucketName | String | Name of the bucket | |||
AfileName | String | The name of the field to download | |||
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> <set name='f1'> <amazon.s3.deleteObject bucketName='//testjabbucket' fileName='blob1.txt' /> </set> <println><f1 /></println> </body> </xsql-script>
Which prints in standard output:
Copy
0