AutoIt
AutoIt
S3 Delete Bucket
See more Amazon S3 Examples
Demonstrates how to delete a bucket.Chilkat AutoIt Downloads
Local $bSuccess = False
; This example assumes the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oHttp = ObjCreate("Chilkat.Http")
; Insert your access key here:
$oHttp.AwsAccessKey = "ABQXXABC83ABCDEFVQXX"
; Insert your secret key here:
$oHttp.AwsSecretKey = "XXXXYYYYabcdABCD12345678xxxxyyyyzzzz"
$oHttp.KeepResponseBody = True
$bSuccess = $oHttp.S3_DeleteBucket("chilkattestbucket")
If ($bSuccess <> True) Then
ConsoleWrite($oHttp.LastErrorText & @CRLF)
; Also examine the error response body from AWS:
ConsoleWrite($oHttp.LastResponseBody & @CRLF)
Else
ConsoleWrite("Bucket deleted." & @CRLF)
EndIf