Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

s3-bucket-empty

lapidus7921MIT0.0.2

Delete all files and directories inside AWS S3 Bucket

Empty, Delete, Clean, S3, Bucket, AWS

readme

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'));