Score:0

How to Bulk Delete 1.4 Million AWS S3 Access Logs

pt flag

We hadn't specified a target bucket for our AWS access logs & I believe we set up an infinite loop https://aws.amazon.com/premiumsupport/knowledge-center/s3-server-access-logs-same-bucket leading to the creation of 1.4 million access logs since 2017. How can I bulk delete all of these files from our S3 bucket?

I have used the command line before but am not very comfortable with it. If this is the easiest way to delete them can you please let me know the exact command(s) I should use?

Tim avatar
gp flag
Tim
We can't tell you how to delete files because we don't know the path of the files you want to keep vs the files you want removed. The S3 cli page has useful examples https://docs.aws.amazon.com/cli/latest/reference/s3/
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.