Learn R Programming

paws.storage (version 0.1.11)

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

Usage

s3_delete_bucket(Bucket, ExpectedBucketOwner)

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.

Value

An empty list.

Request syntax

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

Examples

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

Run the code above in your browser using DataLab