Is there an option to delete the incomplete multipart uploads after X days?.

February 26, 2018 532 views
Object Storage Ubuntu 16.04
1 Answer

Yes. While this functionality has not been exposed in the control panel yet, the Spaces API supports using lifecycle rules to delete incomplete multipart uploads. For example, using AWS cli, you can configure a rule like so:

$ aws s3api --endpoint-url= \
    put-bucket-lifecycle-configuration \
    --bucket example-space \
    --lifecycle-configuration \

Where the contents of lifecycle.json look like:

    "Rules": [
            "ID": "Remove uncompleted uploads",
            "Status": "Enabled",
            "Prefix": "",
            "AbortIncompleteMultipartUpload": {
                "DaysAfterInitiation": 1
Have another answer? Share your knowledge.