Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini memandu Anda cara menghapus bucket penyimpanan dalam lingkungan perlengkapan air-gapped Google Distributed Cloud (GDC). Dokumen ini mencakup prasyarat dan metode untuk menghapus bucket melalui konsol GDC dan antarmuka command line (CLI). Pelajari cara menghapus bucket dengan kebijakan retensi menggunakan penghancuran kriptografis—proses saat Anda menghapus kunci enkripsi yang terkait dengan bucket penyimpanan. Informasi ini memungkinkan Anda mengelola siklus proses penyimpanan objek secara aman dan permanen, sehingga memberikan kebersihan dan kepatuhan data
Halaman ini ditujukan untuk audiens seperti admin IT dalam grup operator infrastruktur atau developer dalam grup operator aplikasi yang bertanggung jawab mengelola resource penyimpanan objek di lingkungan air-gapped GDC.
Sebelum memulai
Namespace project mengelola resource bucket di server Management API. Anda
harus memiliki project untuk bekerja
dengan bucket dan objek.
Anda juga harus memiliki izin bucket yang sesuai untuk melakukan operasi berikut. Lihat Memberikan akses bucket.
Anda dapat menghapus bucket penyimpanan menggunakan kubectl CLI. Bucket harus kosong
sebelum Anda dapat menghapusnya.
Gunakan perintah GET atau DESCRIBE untuk mendapatkan nama bucket yang sepenuhnya memenuhi syarat.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[[["\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"]]