delete_object {aws.s3}R Documentation

Delete object

Description

Deletes one or more objects from an S3 bucket.

Usage

delete_object(object, bucket, quiet = TRUE, ...)

Arguments

object

Character string with the object key, or an object of class “s3_object”. In most cases, if object is specified as the latter, bucket can be omitted because the bucket name will be extracted from “Bucket” slot in object.

bucket

Character string with the name of the bucket, or an object of class “s3_bucket”.

quiet

A logical indicating whether (when object is a list of multiple objects), to run the operation in “quiet” mode. Ignored otherwise. See API documentation for details.

...

Additional arguments passed to s3HTTP.

Details

object can be a single object key, an object of class “s3_object”, or a list of either.

Value

TRUE if successful, otherwise an object of class aws_error details if not.

References

API Documentation

See Also

put_object


[Package aws.s3 version 0.3.21 Index]