Delete S3 bucket where Retention mode is set to "Compliance mode"

0

I want to delete an S3 bucket where where Retention mode is set to "Compliance mode" and it is Retain until date is August 4, 2031, 11:46:52 (UTC+05:30). Is there any way I can delete it now ?

asked 5 months ago307 views
1 Answer
2

Hello.

If the object remains in the S3 bucket, it cannot be deleted.
Wait until the object lock expires and delete the object before deleting the bucket.
Since the object lock cannot be disabled later, I think the only way is to wait until it expires, delete the object, and then delete the S3 bucket.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html#object-lock-overview

The only way to delete an object under the compliance mode before its retention date expires is to delete the associated AWS account.

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions