Wasabi Deleter

Wasabi Deleter
At work, we have a couple of clients that have been using Wasabi S3 storage for certain things. For various reasons, we are moving them off of Wasabi to other solutions.
In order to delete a storage bucket in Wasabi, similar to any other S3 storage I’m aware of, you have to delete every version of every object in the bucket, then you can delete the bucket. If you have a very large number of items or large amount of storage being used, this turns out to be somewhat difficult. If you try to do it in the web UI, it basically just freezes and will never finish. I tried some other solutions, including rclone, and some other S3 utilities, but they also just seemed to get stuck, even listing all the objects before it could delete them.
So I made a python script to handle this better.
Here is Wasabi Deleter. This will first list out the buckets that your key has access to, then ask you if you want to delete all of the objects in that bucket. If you choose yes, it will do it 1,000 at a time, so that it doesn’t just choke on large amounts of files, and can easily be stopped and restarted later if needed.
This is the first thing I’ve put out there open source, which is oddly nervewracking, but hopefully someone out there will find this useful.