is there a way to revert a expiration date for an object in openstack swift?

66 views Asked by At

WIth openstack swift I can set a date for an object to be expired. After this date or at this date a daemon will take care of delete the object. But if I regreat and want to cancel the expiration date, how can I do it ?

1

There are 1 answers

0
Stephen C On BEST ANSWER

According to the documentation, you can cancel an expiration by removing the "X-Delete-At" header from the object:

$ swift post CONTAINER <OBJECT_FILENAME> -H "X-Remove-Delete-At:"

Obviously ... you need to do this before the object's scheduled deletion time.