The following command deletes a bucket named my-bucket under the default project:
gdcloud storage buckets delete my-bucket
The following command deletes two buckets, one named my-bucket and a second bucket named my-other-bucket:
gdcloud storage buckets delete my-bucket my-other-bucket
The following command deletes a bucket under a project with ID my-project-id:
gdcloud storage buckets delete my-bucket --project=my-project-id
選用旗標
--log-http Log all HTTP server requests and responses to stderr.
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eThe \u003ccode\u003egdcloud storage buckets delete\u003c/code\u003e command is used to delete one or more storage buckets.\u003c/p\u003e\n"],["\u003cp\u003eYou can delete multiple buckets at once by listing their names after the command.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify a non-default project for bucket deletion using the \u003ccode\u003e--project\u003c/code\u003e flag.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--log-http\u003c/code\u003e flag allows logging of HTTP requests and responses to stderr.\u003c/p\u003e\n"],["\u003cp\u003eThe command can utilize gdcloud wide flags such as \u003ccode\u003e--configuration\u003c/code\u003e, \u003ccode\u003e--format\u003c/code\u003e, \u003ccode\u003e--help\u003c/code\u003e, \u003ccode\u003e--project\u003c/code\u003e, and \u003ccode\u003e--quiet\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# gdcloud storage buckets delete\n\nNAME\n----\n\ngdcloud storage buckets delete - Delete storage buckets.\n\nSYNOPSIS\n--------\n\n gdcloud storage buckets delete BUCKET_NAME [ BUCKET_NAME ...]\n [--project=PROJECT_ID]\n [--format=FORMAT]\n [--log-http] [flags]\n\nDESCRIPTION\n-----------\n\nDelete one or more storage buckets.\n\n### EXAMPLES\n\n The following command deletes a bucket named my-bucket under the default project:\n\n gdcloud storage buckets delete my-bucket\n\n The following command deletes two buckets, one named my-bucket and a second bucket named my-other-bucket:\n\n gdcloud storage buckets delete my-bucket my-other-bucket\n\n The following command deletes a bucket under a project with ID my-project-id:\n\n gdcloud storage buckets delete my-bucket --project=my-project-id\n\n### OPTIONAL FLAGS\n\n --log-http Log all HTTP server requests and responses to stderr.\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud) page."]]