Learn R Programming

paws.storage (version 0.1.12)

s3_delete_bucket: Deletes the S3 bucket

Description

Deletes the S3 bucket. All objects (including all object versions and delete markers) in the bucket must be deleted before the bucket itself can be deleted.

Related Resources

  • create_bucket

  • delete_object

Usage

s3_delete_bucket(Bucket, ExpectedBucketOwner)

Value

An empty list.

Arguments

Bucket

[required] Specifies the bucket being deleted.

ExpectedBucketOwner

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

Request syntax

svc$delete_bucket(
  Bucket = "string",
  ExpectedBucketOwner = "string"
)

Examples

Run this code
if (FALSE) {
# The following example deletes the specified bucket.
svc$delete_bucket(
  Bucket = "forrandall2"
)
}

Run the code above in your browser using DataLab