https://github.com/andrewrk/node-s3-client#clientdeletedirs3params
Yours doesn't work when there are more than 1000 objects in the bucket. On Tuesday, August 12, 2014 12:23:26 PM UTC-7, zladuric wrote: > > I needed to empty an S3 bucket of test data, but I could find nothing out > of the box. > > So a bit later you can now: > > npm install empty-s3-bucket -g > export S3_ACCESS_KEY=key > export S3_SECRET=secret > export S3_REGION=us-east-1 > empty-s3-bucket my-bucket > > It's not much or very elegant, but it works for me, so I thought it might > help somebody else. > > Constructive criticism welcome. > > -- > Zlatko > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/13d137df-cc86-488e-bfde-fe1f75f3640c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
