openstackopenstack-swift

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


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 ?


Solution

  • 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.