2 Answers
- Newest
- Most votes
- Most comments
3
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
answered 20 days ago
Relevant content
- asked 2 years ago
- asked 8 days ago
- asked a year ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 16 days ago
- AWS OFFICIALUpdated 8 months ago