question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto Delete S3 buckets when environment is removed

See original GitHub issue

Originally created by @daghanacay in the docs project as https://github.com/aws-amplify/docs/issues/1209

Is your feature request related to a problem? Please describe. When we delete an environment it does not delete the s3 buckets corresponding to that environment

Describe the solution you’d like when I execute

amplify env remove [envname]

Describe alternatives you’ve considered manual deletion of S3 buckets

Additional context When the team members grow work-flow defined here https://aws-amplify.github.io/docs/cli-toolchain/quickstart?sdk=js#concepts-1 becomes intractable and leaves a lot of orphan S3 buckets.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
beerthcommented, Nov 26, 2020

why was it closed?

I can confirm that all the buckets except for the hosting bucket is deleted. Can you also delete the hosting bucket? is there a reason why you leave it? Cheers -Daghan On Fri, Mar 13, 2020 at 8:41 AM Kaustav Ghosh @.***> wrote: We don’t delete the S3 hosting bucket. We delete the S3 deployment bucket and the S3 storage bucket added as a part of the amplify add storage flow. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#3627 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV2FLU6RYZSWZ7YYI53VVDRHFJJFANCNFSM4LEQ2YHQ .

Why are hosting buckets not deleted?

1reaction
daghanacaycommented, Mar 20, 2020

I can confirm that all the buckets except for the hosting bucket is deleted.

Can you also delete the hosting bucket? is there a reason why you leave it?

Cheers -Daghan

On Fri, Mar 13, 2020 at 8:41 AM Kaustav Ghosh notifications@github.com wrote:

We don’t delete the S3 hosting bucket. We delete the S3 deployment bucket and the S3 storage bucket added as a part of the amplify add storage flow.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aws-amplify/amplify-cli/issues/3627#issuecomment-598430596, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV2FLU6RYZSWZ7YYI53VVDRHFJJFANCNFSM4LEQ2YHQ .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automatically delete old files from AWS S3
On the AWS (Amazon Web Service) platform, we can easily automatically delete data from our S3 bucket. We open Amazon S3 and select...
Read more >
How to Easily Delete an S3 Bucket with Millions of Files in it
Quick automation tips for clearing out your AWS S3 buckets.
Read more >
Automatically delete old items from s3 bucket - Server Fault
Is there an easy way to set up a bucket in s3 to automatically delete files older than x days?
Read more >
How can i automatically delete AWS S3 files using python?
You have many options here. Some ideas: You can automatically delete files are a given time period by using Amazon S3 Object Lifecycle ......
Read more >
How to delete files from S3 bucket periodically (AWS)
Setup deletion of all the files in S3 bucket after 30 days. Select Current Version and set the days you would like to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found