Hacker News new | ask | show | jobs
by charcircuit 341 days ago
It doesn't let you.
1 comments

It can be done if you delete the versions. You’ll need to use the aws cli.
It cannot be done if S3 objects use the object lock in compliance mode. Such objects cannot be altered in any way and the bucket cannot be deleted until the lock expires .
Good to know! I’ve never used that feature.
Note that with such lock mistakes can be costly. If you put into S3 several terabytes by mistake and set the compliance lock duration for 2 years, you will have to pay for that storage for 2 years.
So not even Amazon can fix this? What if my company goes bankrupt with several TB locked up?
If you close the account with Amazon, then yes, the data can be deleted. But typically based on contract this will require notifying Amazon and will be extremely visible and can be reverted.

If the company does not pay, then the company breaches its contract and Amazon can delete the data. But typically there would be a warning period.