I've recently found out that I have a mountain of log files in S3, most of which are stored in Glacier. This all started back in 2012, and frankly, I'm not sure how I got here. Now, I'm trying to figure out if there's an easy and, most importantly, cost-effective way to delete these logs. I came across a resource about lifecycle rules for empty buckets, but it doesn't seem to specify any costs involved. Even a small fee per thousand files can add up quickly with millions of logs. Can anyone help me sort this out?
4 Answers
I’m not entirely sure about the exact costs, but logically, deleting files usually costs less than keeping them stored. Might be worth checking if that’s the case for your logs!
Just a heads up: if any of your files were archived to Glacier and haven't met the minimum storage duration, there could be a charge for deleting them. Check the guidelines on AWS's site for specific details.
Thanks for the clarification! That's important to know.
As mentioned, you'll be fine to delete unless any logs are less than 90 or 180 days old, depending on the Glacier type. If your logs are older than that, you can go ahead and delete without worrying about costs!
I think most of them will be older, but I’ll have to look into it.
Good news! Deleting files from S3 is free of charge. Just make sure to double-check the storage duration rules; if they've been archived for the minimum time, you should be in the clear!
Thanks for that info!

Yeah, but keep in mind these are very small files. Still, it seems likely to be cheaper.