Nikenano
Nikenano

Reputation: 33

Problems deleting GCP storage bucket

I have two buckets that I can't delete on GCP, tried through the UI. I can't find any support info from GCP and can't delete them. They are relatively large and I want to avoid the cost as well. Do I need to delete the project?

Thanks for any help!

Upvotes: 1

Views: 1579

Answers (2)

Sneha Mule
Sneha Mule

Reputation: 715

Try to delete GCP bucket using UI (Check you have access to delete GCP bucket )

Otherwise, you can delete the GCP bucket using gsutil

// Set Project name

gcloud config set project <Project_Name>

// Delete Bucket

gsutil rm -m gs://<Bucket-Name>

Upvotes: 0

Bernardo Duarte
Bernardo Duarte

Reputation: 4264

As previously posted here, this process may actually take a while, so perhaps just wait a little bit.

But, if it still doesn't work than perhaps you can follow what was suggested.

As a workaround to the UI being unclear, you can use gsutil to remove all files in a bucket, followed by the bucket itself, using gsutil rm -r gs://bucket.

Or perhaps gsutil rm -m gs://bucket for a parallel deletion.

Upvotes: 3

Related Questions