Skip to content

Month: November 2024

Delete backblaze bucket now, not later

So, I had a backup that went wrong, and I just wanted to delete the bucket altogether, but I kept getting errors via the web GUI.

I googled a bit and found that you can set expirations for your bucket. Maybe in 2 days, it’ll delete the files on its own, but I didn’t want to wait.

I downloaded the Windows CLI tool from https://www.backblaze.com/docs/cloud-storage-command-line-tools.

Open a command prompt and run the exe, b2-windows.exe. You’ll see a bunch of flags, etc.

Log in to your account by running this command

.\b2-windows.exe account authorize [applicationKeyId] [applicationKey]

Next, run this command

.\b2-windows.exe rm –versions –recursive “b2://bucket-name”

It’ll take time, depending on the number of files you have. You should see a counter as it reads through the bucket.

Leave a Comment