I am using knox npm module to upload files to a bucket on S3. It works great. What I am not sure how to do is how to remove all the files from a bucket in one call instead of deleting one file at the time?
any idea would help...
I am using knox npm module to upload files to a bucket on S3. It works great. What I am not sure how to do is how to remove all the files from a bucket in one call instead of deleting one file at the time?
any idea would help...
This has not been possible in the past, however, Amazon has finally introduced Amazon S3 - Multi-Object Delete in December 2011:
Obviously client libraries like knox must add dedicated support for this API now in turn, and a respective issue does indeed exist already in knox' issue tracker (still pending as of today), see Multi-Object Delete.
Accordingly you should monitor this issue and/or participate in the implementation :)