Skip to content

Instantly share code, notes, and snippets.

@jeonghwan-kim
jeonghwan-kim / delete-aws-s3.js
Created March 17, 2014 11:08
delete object in S3
var aws = require('aws-sdk');
var BUCKET = 'node-sdk-sample-7271';
aws.config.loadFromPath(require('path').join(__dirname, './aws-config.json'));
var s3 = new aws.S3();
var params = {
Bucket: 'node-sdk-sample-7271',
Delete: { // required
Objects: [ // required
{