名称
gdcloud storage buckets delete - 删除存储分区。
摘要
gdcloud storage buckets delete BUCKET_NAME [ BUCKET_NAME ...]
--location=LOCATION
--location-type=LOCATION_TYPE
[--project=PROJECT_ID]
[--format=FORMAT]
[--log-http] [flags]
说明
删除一个或多个存储分区。
示例
The following command deletes a zonal bucket named my-bucket under the default project:
gdcloud storage buckets delete my-bucket --location=zone1 --location-type=SingleZone
The following command deletes two zonal buckets, one named my-bucket and a second bucket named my-other-bucket:
gdcloud storage buckets delete my-bucket my-other-bucket --location=zone1 --location-type=SingleZone
The following command deletes a zonal bucket under a project with ID my-project-id:
gdcloud storage buckets delete my-bucket --location=zone1 --location-type=SingleZone --project=my-project-id
The following command deletes a dual-zone bucket named my-dz-bucket under the default project:
gdcloud storage buckets delete my-dz-bucket --location=zone1,zone2 --location-type=AsyncDualZone
The following command deletes two dual-zone buckets, one named my-dz-bucket and a second bucket named my-other-dz-bucket:
gdcloud storage buckets delete my-dz-bucket my-other-dz-bucket --location=zone1,zone2 --location-type=AsyncDualZone
The following command deletes a dual-zone bucket under a project with ID my-project-id:
gdcloud storage buckets delete my-dz-bucket --location=zone1,zone2 --location-type=AsyncDualZone --project=my-project-id
必需标志
--location string Comma-separated list of zones where the storage buckets are available.
--location-type string Bucket location configuration type. Available options are: [AsyncDualZone, SyncDualZone, SingleZone].
可选标志
--log-http Log all HTTP server requests and responses to stderr.
GDCLOUD 全局标志
以下标志适用于所有命令:--configuration、--format、--help、--project、--quiet。
如需了解详情,请参阅 gdcloud CLI 参考概览页面。