gcs_delete_bucket: Delete a bucket

Description Usage Arguments See Also

View source: R/buckets.R

Description

Delete the bucket, and all its objects

Usage

1
2
3
4
5
6
7
8
gcs_delete_bucket(
  bucket,
  ifMetagenerationMatch = NULL,
  ifMetagenerationNotMatch = NULL,
  force_delete = FALSE
)

gcs_delete_bucket_objects(bucket, include_versions = FALSE)

Arguments

bucket

Name of the bucket, or a bucket object

ifMetagenerationMatch

Delete only if metageneration matches

ifMetagenerationNotMatch

Delete only if metageneration does not match

force_delete

If the bucket contains objects it will prevent deletion, including objects in a versioned bucket that previously existed. Setting this to TRUE will force deletion of those objects before deleting the bucket itself.

include_versions

Whether to include all historic versions of the objects to delete

See Also

gcs_delete_object

Other bucket functions: gcs_create_bucket(), gcs_create_lifecycle(), gcs_get_bucket(), gcs_get_global_bucket(), gcs_global_bucket(), gcs_list_buckets()


googleCloudStorageR documentation built on Dec. 16, 2021, 5:06 p.m.