gulp-s3
gulp-s3 copied to clipboard
Question: How can I delete the previous version files from the s3 bucket?
Hey guys,
I am using gulp-s3 to deploy a web app to S3.
Since the .js and .css files are versioned on each deploy I would like to delete the previous versions of these files (or even rotate it) from the S3 bucket.
I thought about deploying the files to a versioned directory inside the bucket, but I didn't find an option on the code to pass the name of the directory to upload the files.
Can you please give me any suggestion about how to delete or rotate the previous version?
Thank you.
Also looking for something like this.
+1
Looking for same