bristoljim-s3-bucket-empty

0.0.3 • Public • Published

S3 Bucket empty

Deletes all files and directories in an AWS S3 Bucket.

Installation:

npm install s3-bucket-empty --save-dev 

Usage:

const s3empty = require('s3-bucket-empty');
const s3Conf = {
  "S3_SECRET": "BLAH",
  "S3_ACCESS_KEY": "BLAH",
  "S3_REGION": "eu-west-1"
};
s3empty.empty(s3Conf, 'mybucketname')
       .then(() => console.log('s3empty done'));

Package Sidebar

Install

npm i bristoljim-s3-bucket-empty

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

2.84 kB

Total Files

4

Last publish

Collaborators

  • bristoljim