Delete storage buckets for projects

This page shows you how to delete Google Distributed Cloud (GDC) air-gapped storage buckets.

Before you begin

A project namespace manages bucket resources in the org admin cluster. You must have a project to work with buckets and objects.

You must also have the appropriate bucket permissions to perform the following operation. See Grant bucket access.

Delete storage buckets

Console

  1. In the navigation menu, click Object Storage.
  2. Click delete Delete at the end of the row of the bucket to be deleted.
  3. Wait a few minutes and refresh the page to check that the bucket is deleted.

CLI

You can delete storage buckets by using the CLI. Buckets must be empty before you can delete them.

  1. Use the GET or DESCRIBE command from the View bucket configuration section to get the fully qualified bucket name.

  2. If the bucket is not empty, delete files within the bucket:

    gdcloud storage rm --recursive -a s3://BUCKET/**
    
  3. Delete the empty bucket:

    kubectl delete buckets/BUCKET_NAME --namespace NAMESPACE_NAME
    

Crypto shred bucket

Retrieve the information about the AEADKey based on Verify bucket resource creation and follow Delete a key to delete the AEADKey, then the entire bucket would be crypto shredded.

You can run the following command to verify the bucket has been successfully crypto shredded. The BucketReady should be False and Reason to be BucketCryptoShredded.

kubectl get Buckets BUCKET_NAME -n NAMESPACE_NAME