名稱
gdcloud storage buckets delete - Delete storage buckets.
概要
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。
詳情請參閱 gcloud CLI 參考資料總覽頁面。