six_bucket_delete | R Documentation |
Takes care of deleting bucket objects, so that the bucket itself can be deleted cleanly
six_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
Exits early if bucket does not exist
Checks for any objects in the bucket and deletes any present
Deletes bucket after deleting objects
Other buckets:
aws_bucket_create()
,
aws_bucket_delete()
,
aws_bucket_download()
,
aws_bucket_exists()
,
aws_bucket_list_objects()
,
aws_bucket_tree()
,
aws_bucket_upload()
,
aws_buckets()
,
six_bucket_upload()
Other magicians:
six_admin_setup()
,
six_bucket_upload()
,
six_file_upload()
,
six_user_create()
,
six_user_delete()
# bucket does not exist
six_bucket_delete("notabucket")
# bucket exists w/o objects
bucket <- random_bucket()
aws_bucket_create(bucket)
six_bucket_delete(bucket, force = TRUE)
# bucket exists w/ objects (files and directories with files)
bucket <- random_bucket()
aws_bucket_create(bucket)
demo_rds_file <- file.path(system.file(), "Meta/demo.rds")
links_file <- file.path(system.file(), "Meta/links.rds")
aws_file_upload(
c(demo_rds_file, links_file),
s3_path(bucket, c(basename(demo_rds_file), basename(links_file)))
)
aws_file_upload(
c(demo_rds_file, links_file),
s3_path(
bucket, "newfolder",
c(basename(demo_rds_file), basename(links_file))
)
)
aws_bucket_list_objects(bucket)
six_bucket_delete(bucket, force = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.