- Newest
- Most votes
- Most comments
Hello,
Object lock is nothing but Restricting the deletion option by accidently or for security reasons. But you have a chance to delete the objects or empty the bucket by enabling Default retention in Object lock set the retention mode to Governance so that you can empty the bucket with certain permissions. As a root user you don't need any permission. So you can empty the bucket by enabling Default Retention.
Note: by enabling Object lock to a bucket you can have a chance to delete objects in that bucket but you can't delete the bucket once the object lock is enabled.
For further details see https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html
Hello
Please check this solution https://repost.aws/knowledge-center/s3-object-lock-delete
Relevant content
- Accepted Answerasked a year ago
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 days ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago