empty-s3-bucket

Delete all objects from an S3 bucket.

Usage no npm install needed!

<script type="module">
  import emptyS3Bucket from 'https://cdn.skypack.dev/empty-s3-bucket';
</script>

README

Empty S3 Bucket

A simple script to fetch a list of objects on a bucket and delete them all.

Usage:

npm -g install empty-s3-bucket

empty-s3-bucket <bucket_name>

For now, the script is dumb and requires environment settings:

export S3_ACCESS_KEY=<key>
export S3_SECRET=<secret>
export S3_REGION=<region>

Changelog

  • removed config.js, moved settings to CLI
  • made script a binary, globally installable

Plans

No current plans for now, if I need more features, I'll add them. Feel free to PR, I will probably accept anything.