removeFile: Remove an S3 bucket or object

Description Usage Arguments Value Author(s) References See Also

Description

These functions allow the R user to delete/remove an S3 bucket or object within a bucket.

Usage

1
2
3
4
5
removeFile(bucket, name, auth = getOption("AmazonS3"),
            curl = getCurlHandle(), virtual = (tolower(bucket) == bucket))
removeBucket(bucket, auth = getOption("AmazonS3"), 
              curl = getCurlHandle(),
                virtual = (tolower(bucket) == bucket))

Arguments

bucket

the name of the AWS bucket. One can also specify the bucket and object/file name as "bucket/name".

name

the name of the object within the bucket to remove

auth

a named character vector giving the AWS key and secret as a c(key = secret).

curl

a curl handle that the caller can specif to reuse an existing object that is resused across different libcurl calls.

virtual

a logical value indicating whether to use the virtual host mechanism or s3.amazonaws.com/bucket/obj format. The default argument is most likely the appropriate value.

Value

A logical value indicating whether the operation was successful (TRUE) or not (FALSE).

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

References

http://docs.amazonwebservices.com/AmazonS3/latest/gsg/

See Also

addFile getFile copyFile


duncantl/RAmazonS3 documentation built on May 15, 2019, 5:26 p.m.