I have about 16mil files (1 TB total) in DO space and I wanted to set expiration policy to delete all files older than 40 days. According to docs, DO Spaces should support LifecycleConfiguration, so that I set it for bucket using s3cmd:

s3cmd expire  s3://mybucket --expiry-days 40

The command was accepted and the rule was set:

s3cmd getlifecycle  s3://mybucket

<?xml version="1.0" ?>
<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">

However, 2 months passed and I checked the bucket again and I still can see files older than half year. So is this feature working? Is it limited to some specific datacenter or so?



Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!