Learn R Programming

googleCloudStorageR (version 0.7.0)

gcs_delete_object: Delete an object

Description

Deletes an object from a bucket

Usage

gcs_delete_object(
  object_name,
  bucket = gcs_get_global_bucket(),
  generation = NULL
)

Arguments

object_name

Object to be deleted, or a gs:// URL

bucket

Bucket to delete object from

generation

If present, deletes a specific version.

Default if generation is NULL is to delete the latest version.

Value

If successful, TRUE.

See Also

To delete all objects in a bucket see gcs_delete_bucket_objects

Other object functions: gcs_compose_objects(), gcs_copy_object(), gcs_get_object(), gcs_list_objects(), gcs_metadata_object()