Skip to main content

Lifecycle

With the Lifecycle feature of Arvancloud Object Storage, you can manage your files cost-effectively. This feature helps you automatically delete all or some of your objects at specific intervals by defining simple rules. For example, if you regularly upload your website's or application's logs to Object Storage and only need them for a week or a month, keep many versions of an object, or have incomplete uploads, you can define a lifecycle rule to delete them automatically after that period.

Enabling Lifecycle​

To set up lifecycle, you need to define rules that specify when objects expire, after which Arvancloud deletes them automatically. In the Buckets menu of the Object Storage panel, select the bucket you want to enable lifecycle for and go to Actions.

In the Lifecycle section, click New Rule. On this page, enter the rule's settings based on your needs:

  • Rule name

    Choose a name for the lifecycle rule. This name must be written in English letters and can include - and _.

  • Rule scope

    In this section, you can specify which objects the rule applies to.

    • All objects: With this option, the rule applies to all objects in the bucket.
    • By category: In this mode, you can categorize objects by prefix, tag, or object size and define the rule only for a specific group of objects.
  • Delete current version

    With this option and an object expiration time set, the object's current version is deleted after the expiration time, and the latest previous version becomes the current version.

  • Delete noncurrent versions

    In this mode, you need to set 2 values: the expiration time and the number of versions to keep. This way, after the expiration time, a specific number of versions remain and the rule doesn't apply to them.

  • Delete incomplete multipart uploads

    To delete incomplete uploads, simply set their expiration time in this section. The expiration time is set to make sure the upload process has finished and is incomplete.

Finally, click Save to apply the rule to the bucket.

Managing Lifecycle​

To see and manage the lifecycle rules defined on buckets, you can edit or delete these rules, or define a new rule, in each bucket's Actions section.