Skip to main content

Lifecycle

A lifecycle policy automatically deletes objects stored in a bucket after a specified period. You can apply a policy to all objects, objects with a specific prefix, or objects with specific object tags.

Configure and manage lifecycle policies

You can create and manage lifecycle policies for buckets.

info

To view bucket permission information, the storage.buckets.getIamPolicy permission is required. For roles that include this permission, see Roles and permissions.

Configure lifecycle

For objects in a bucket, you can set a retention period from at least 1 day to up to 18,250 days (50 years). After the configured retention period passes, objects are automatically deleted according to the lifecycle policy.

note

The feature for moving objects to a different bucket type will be updated later.

  1. Go to KakaoCloud Console > Storage > Object Storage.
  2. In the General Bucket menu, select a bucket.
  3. In the Management list, click [Create lifecycle], enter the lifecycle policy, and click [Create].

Lifecycle policy input fields are as follows.

CategoryDescription
Target bucketBucket name
Lifecycle policy nameName used to identify the lifecycle policy
RuleObjects to which the lifecycle policy applies
- All objects: Apply the lifecycle policy to all objects in the bucket
- Specify Prefix: Enter the prefix of objects to which the policy applies
- Example: To apply the policy to all objects that start with elastic-, select Specify Prefix and enter elastic- in the input field
- Specify object tag: Enter the tag information of objects to which the policy applies
ActionLifecycle policy to apply
- Delete after expiration: Delete objects when the specified period expires
Retention periodPeriod that objects are retained in the bucket
info

AbortIncompleteMultiPartUpload settings can be applied to lifecycle rules through the API. This rule provides a feature to abort file uploads that are not completed within a specified number of days.

Aborting incomplete file uploads can help reduce storage costs.

Manage lifecycle policies

  1. Go to KakaoCloud Console > Storage > Object Storage.
  2. In the General Bucket menu, click a bucket.
  3. On the bucket details page, go to the Management list.
  4. In the lifecycle policy list, select a configured policy.
  5. Click the edit button to modify the policy. You can also enable or disable the policy as needed.

The lifecycle policy list displays the following fields.

CategoryDescription
Lifecycle policy nameName used to identify the lifecycle policy
Status- Enabled: The lifecycle policy is applied to the bucket
- Disabled: The lifecycle policy is not applied to the bucket
Rule- All: Apply the lifecycle policy to all objects in the bucket
- Prefix: Prefix of objects to which the policy applies
- Tag: Tag information of objects to which the policy applies
ActionLifecycle policy to apply
- Delete after expiration: Delete objects when the specified period expires
Retention periodPeriod that objects are retained in the bucket
[⋮] button- Enable policy: Enable a disabled lifecycle policy
- Disable policy: Disable an enabled lifecycle policy
- Configure lifecycle: Modify the lifecycle policy
- Delete policy: Delete the lifecycle policy