[[["容易理解","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\u003eThis guide details the process for deleting Google Distributed Cloud (GDC) air-gapped appliance storage buckets.\u003c/p\u003e\n"],["\u003cp\u003eA project namespace is required to manage bucket resources in the admin cluster.\u003c/p\u003e\n"],["\u003cp\u003eUsers need appropriate bucket permissions to delete buckets.\u003c/p\u003e\n"],["\u003cp\u003eBuckets must be emptied before they can be deleted.\u003c/p\u003e\n"],["\u003cp\u003eThe kubectl CLI is utilized to delete storage buckets after being emptied.\u003c/p\u003e\n"]]],[],null,["# Delete storage buckets\n\nThis page guides you through how to delete storage buckets within Google Distributed Cloud (GDC) air-gapped appliance environments. It covers prerequisites and methods for deleting buckets through the GDC console and command line interface (CLI). Learn how to delete buckets with retention policies by crypto shredding---a process where you delete the encryption key associated with the storage bucket. This information lets you securely and permanently manage the lifecycle of your object storage, providing data hygiene and compliance\n\nThis page is for audiences such as IT admins within the infrastructure operator group or developers within the application operator group who are responsible for managing object storage resources in GDC air-gapped environments.\n\nBefore you begin\n----------------\n\nA project namespace manages bucket resources in the Management API server. You\nmust have a [project](/distributed-cloud/hosted/docs/latest/appliance/platform/pa-user/create-a-project) to work\nwith buckets and objects.\n\nYou must also have the appropriate bucket permissions to perform the following\noperation. See [Grant bucket access](/distributed-cloud/hosted/docs/latest/appliance/platform/pa-user/grant-obtain-storage-access#grant_bucket_access).\n\nYou can delete storage buckets by using the kubectl CLI. **Buckets must be empty\nbefore you can delete them.**\n\n1. Use the [`GET` or `DESCRIBE` command](/distributed-cloud/hosted/docs/latest/appliance/platform/pa-user/list-view-storage-buckets#view_bucket_configuration) to get the fully qualified\n bucket name.\n\n2. If the bucket is not empty, empty the bucket:\n\n gdcloud storage rm --recursive s3://\u003cvar translate=\"no\"\u003eFULLY_QUALIFIED_BUCKET_NAME\u003c/var\u003e\n\n3. Delete the empty bucket:\n\n kubectl delete buckets/\u003cvar translate=\"no\"\u003eBUCKET_NAME\u003c/var\u003e --namespace \u003cvar translate=\"no\"\u003eNAMESPACE_NAME\u003c/var\u003e"]]