AWSS3DeleteObject

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

Delete an object

Parameters
NameTypeDescription
pBucket

The name of a bucket

pObject

The name (key) of the object

pCallback

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

Example
AWSS3DeleteObject "mybucket", "myobject", "deleteObjectCallback"

on deleteObjectCallback pRequestID, pResult, pError
   if pError is not empty then
      answer pError
   end if
end deleteObjectCallback
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 server response 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