Why can't I delete an Amazon S3 bucket that Elastic Beanstalk created?

Last updated: 2022-11-01

My AWS Elastic Beanstalk application created an Amazon Simple Storage Service (Amazon S3) bucket. Why can't I delete the bucket?


When you use an Elastic Beanstalk application to create an S3 bucket, a policy is applied to the bucket that protects it from accidental deletion. To delete the bucket, you must delete the bucket policy first. For instructions, see Deleting the Elastic Beanstalk Amazon S3 Bucket.

Warning: If you delete the bucket, then any other AWS resources or applications that depend on the bucket might stop working correctly.

Did this article help?

Do you need billing or technical support?