Delete Bucket operation


The Delete Bucket operation deletes the bucket specified in the Uniform Resource Identifier (URI). You must delete all the objects in the bucket, including the object versions and delete markers, before deleting the bucket. Only the owner of a bucket can delete it, regardless of the bucket's access control policy.

The following figure shows the <items> XML element for the Delete Bucket operation:

<items>
 <item>
   <parameters>
     <bucket>TestBucket</bucket>
   </parameters>
 </item>
</items>

The following figure shows a sample adapter request for the Delete Bucket operation:

<amazon-s3-request>
 <secret-access-key />
 <operation-name>delete-bucket</operation-name>
 <parameters>
   <bucket>TestBucket</bucket>
 </parameters>
</amazon-s3-request>

The following table describes the elements for the adapter request:

Element

Description

Required

<wsdl-location>

Specifies the target WSDL URL for Amazon S3
Example: http://s3.amazonaws.com/doc/2006-03-01/AmazonS3.wsdl

Conditional; required if not specified in the configuration

<endpoint-address>

Specifies the web service endpoint to use for performing operations on Amazon S3 buckets across different regions

Default: https://s3.amazonaws.com/soap: Endpoint in the US Standard region

Values for different regions:

No

<aws-access-key-id>

Specifies the 20-character public access key ID that is included in an Amazon Web Service (AWS) service request to identify the user

Conditional; required if not specified in the configuration

<secret-access-key>

Specifies the 40-character private identifier that is associated with the access key ID

Conditional; required if not specified in the configuration

<operation-name>

Contains the name of the operation: delete-bucket

Yes

<bucket>

Specifies a name for the bucket that you want to delete

Yes

The following figure shows a sample adapter response for the Delete Bucket operation:

<amazon-s3-response>
 <metadata>
   <status>success</status>
 </metadata>
 <DeleteBucketResponse>
   <Code>204</Code>
    <Description>No Content</Description>
 </DeleteBucketResponse>
</amazon-s3-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Orchestration Content 24.3