AWSS3DeleteBucket

Typecommand
Dictionarylibrary.aws
LibraryAmazon Web Services
Syntax
AWSS3DeleteBucket <pBucket>,<pCallback>
Associationscom.livecode.library.aws
Summary

Delete a bucket.

Parameters
NameTypeDescription
pBucket

The name of a bucket

pCallback

A command name to be sent on completion with the server reponse.

Example
AWSS3DeleteBucket "mybucket", "deleteBucketCallback"
put it into tRequestID

on deleteBucketCallback pRequestID, pResult, pError
   if pError is empty then
      answer "Bucket deleted"
   end if
end deleteBucketCallback
Values
NameTypeDescription
It

A request ID able to be used with tsNetGetStatus while the request is active.

The result

An error message if the request failed.

RelatedFunction: tsNetGetStatus, tsNetRetrHeaders
Library: tsNet
Description

The caller of this command will be sent the callback message on completion with two parameters:

  • the request ID
  • the response from the server which should be empty.
  • an error message if one occurred

For futher details about this API see the AWS S3 REST API Documentation

Note: The message is sent before the tsNet connection is closed so it is possible to access the recieved headers using the tsNetRetrHeaders function

Tagsnetworking,networking