Home > cloudfiles-nukem

cloudfiles-nukem

Cloudfiles-nukem is a project mainly written in Ruby, based on the Apache-2.0 license.

A single-file Ruby script to delete an entire Rackspace CloudFiles container or a specific set of files in a container with many objects (millions) quickly by using multiple threads to retrieve and delete the individual objects.

CloudFiles-Nukem

cloudfiles-nukem is a Rackspace CloudFiles variation of s3nukem which is a slightly improved version of s3nuke, a Ruby script by Steve Eley that relatively quickly deletes an Amazon Web Services (AWS) Simple Storage Service (S3) bucket with many objects (millions) by using multiple threads to retrieve and delete the individual objects.

Installation

You'll need:

  • Ruby >= 1.87 Ruby 1.9 should work faster because of the native thread implementation (on the other hand, network/S3 latency may be your biggest bottleneck).

  • ruby-cloudfiles gem

      sudo gem install cloudfiles

Download and make executable; e.g.,

# download
git clone [email protected]:hathaway/cloudfiles-nukem.git

# make executable
chmod 755 cloudfiles-nukem

Obvious Warning

This script is intended to delete all of the items in a CloudFiles container very quickly. You will not be prompted to ask you if you're sure. There is no undo.

License

This script is released under the Apache License, Version 2.0. I really don't care what you do with it, so long as "sue me" is not on the agenda.

Credits

Original s3nuke script by Steve Eley.

Improvements by Robert LaThanh.

CloudFiles version by Ben Hathaway.