GithubHelp home page GithubHelp logo

hemachandsai / s3-bulk-delete Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 8.56 MB

Empties an S3 bucket@3500 Objects per second

License: Other

Shell 2.97% Go 94.02% Batchfile 3.02%
aws-s3 aws-s3-delete s3-bucket s3-storage s3-bucket-cleanup s3-bulk-delete

s3-bulk-delete's Introduction



S3 Bulk Delete helps to empty s3 buckets
It is much faster than delete through aws-cli which is sequential

Submit an Issue

Gitter


What is this project for

  • Currently we can use aws cli to empty an s3 bucket. But is very slow because of the sequential nature
  • s3-bulk-delete uses list-objects(5,500 objects per second) and delete-objects(3500 objects per second per prefix) api using aws sdk to delete at much faster rate respecting aws s3 rate limit rules

Demo


How to use

  • Download the latest binary from the releases section depending on the target platform
  • Execute the download binary with desired flags
usage: ./s3-bulk-delete -aws-region {{region}} -bucket {{{bucketname}}

  -aws-region string
        AWS Region in which bucket exists. (Required)
  -bucket string
        Bucket name to be deleted. (Required)

Examples

s3-bulk-delete-windows.exe -aws-region us-east-1 -bucket test
./s3-bulk-delete-linux -aws-region us-east-1 -bucket test-bucket
./s3-bulk-delete-darwin -aws-region us-east-1 -bucket test-bucket

Future plans

  • Migrate the project to use go modules

How to contribute

Feel free to raise a PR with new features or fixing existing bugs

License

See the LICENSE file for license rights and limitations (Apache2.0).

s3-bulk-delete's People

Contributors

hemachandsai avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.