gcloud storage buckets delete Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud storage buckets delete - deletes Cloud Storage buckets
- SYNOPSIS
gcloud storage buckets deleteURLS[URLS…][--additional-headers=HEADER=VALUE][--continue-on-error,-c][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
- Deletes one or more Cloud Storage buckets.
- EXAMPLES
- Delete a Google Cloud Storage bucket named "my-bucket":
gcloudstoragebucketsdeletegs://my-bucketDelete two buckets:
gcloudstoragebucketsdeletegs://my-bucketgs://my-other-bucket - POSITIONAL ARGUMENTS
URLS[URLS…]- Specifies the URLs of the buckets to delete.
- FLAGS
--additional-headers=HEADER=VALUE- Includes arbitrary headers in storage API calls. Accepts a comma separated listof key=value pairs, e.g.
header1=value1,header2=value2. Overridesthe defaultstorage/additional_headersproperty value for thiscommand invocation. --continue-on-error,-c- If any operations are unsuccessful, the command will exit with a non-zero exitstatus after completing the remaining operations. This flag takes effect only insequential execution mode (i.e. processor and thread count are set to 1).Parallelism is default.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - NOTES
- This variant is also available:
gcloudalphastoragebucketsdelete
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.