1.0.5 • Published 6 years ago

delete-aws-bucket v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Delete AWS Bucket

For a given AWS S3 bucket, all objects, their versions, and the bucket will be deleted.

Getting Started

Run

npm install --save delete-aws-bucket

API

The first argument is the bucket name, and the second argument is an optional config object passed to the AWS SDK.

deleteBucket(bucketName, [config]);

Usage

const deleteBucket = require('delete-aws-bucket');

deleteBucket('my-bucket');

const awsConfig = {
    accessKeyId: 'AKID',
    secretAccessKey: 'SECRET',
    region: 'us-west-2'
};

deleteBucket('other-bucket', awsConfig);

Debugging

The AWSJS_DEBUG environment variable enables logging in aws-sdk. If the AWSJS_DEBUG environment variable is set this module will log debug information also.

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago