s3_file_delete delete files in AWS S3

s3_dir_delete delete directories in AWS S3 recursively.

s3_file_delete(path, ...)

s3_dir_delete(path)

Arguments

path

(character): A character vector of paths or s3 uris.

...

parameters to be passed to s3_delete_objects

Value

character vector of s3 uri paths

Examples

if (FALSE) {
# Require AWS S3 credentials

temp_file = s3_file_temp(tmp_dir= "MyBucket")
s3_file_create(temp_file)

s3_file_delete(temp_file)
}