Linode object storage lifecycle is not working
Hi,
I have set an expiration policy for my bucket with 1 day life cycle. But it doesn't work for me.
Here is my s3cmd getlifecyclepolicy output
<?xml version="1.0" ?>
<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Rule>
<ID>delete-all-objects</ID>
<Prefix/>
<Status>Enabled</Status>
<Expiration>
<Days>1</Days>
</Expiration>
</Rule>
</LifecycleConfiguration>
1 Reply
eruzanski
Linode Staff
Hi there,
I believe this is a simple syntax issue here. By chance could you try the following:
<LifecycleConfiguration>
<Rule>
<ID>delete-all-objects</ID>
<Filter>
<Prefix></Prefix>
</Filter>
<Status>Enabled</Status>
<Expiration>
<Days>1</Days>
</Expiration>
</Rule>
</LifecycleConfiguration>
This would delete all objects in the bucket after one day.
Regards,
Eric