| aws_bucket_delete | R Documentation |
Delete an S3 bucket
aws_bucket_delete(bucket, force = FALSE, ...)
bucket |
(character) bucket name. required |
force |
(logical) force deletion without going through the prompt.
default: |
... |
named parameters passed on to delete_bucket |
NULL, invisibly
Requires the env var AWS_REGION. This function prompts you to make
sure that you want to delete the bucket.
Other buckets:
aws_bucket_create(),
aws_bucket_download(),
aws_bucket_exists(),
aws_bucket_list_objects(),
aws_bucket_tree(),
aws_bucket_upload(),
aws_buckets(),
six_bucket_delete(),
six_bucket_upload()
bucket_name <- random_bucket()
if (!aws_bucket_exists(bucket_name)) {
aws_bucket_create(bucket = bucket_name)
aws_buckets()
aws_bucket_delete(bucket = bucket_name, force = TRUE)
aws_buckets()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.