Delete an S3 bucket
Arguments
- bucket
(character) bucket name. required
- force
(logical) force deletion without going through the prompt. default:
FALSE
. Should only be set toTRUE
when required for non-interactive use.- ...
named parameters passed on to delete_bucket
Note
Requires the env var AWS_REGION
. This function prompts you to make
sure that you want to delete the bucket.
See also
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()
Examples
if (FALSE) { # interactive()
bucket_name <- "bucket-to-delete-113"
if (!aws_bucket_exists(bucket_name)) {
aws_bucket_create(bucket = bucket_name)
aws_buckets()
aws_bucket_delete(bucket = bucket_name)
aws_buckets()
}
}