Help Center/ Object Storage Service/ FAQs/ How Do I Use Lifecycle Management?/ Can I Use a Lifecycle Rule to Delete Objects or Transition Storage Classes Based on Name Suffixes?
Updated on 2026-09-14 GMT+08:00

Can I Use a Lifecycle Rule to Delete Objects or Transition Storage Classes Based on Name Suffixes?

Currently, lifecycle rules do not support suffix matching. However, you can use the following methods to delete objects with specified name suffixes or transition the storage class of such objects:

  • Method 1: Use the prefix filter criteria of a lifecycle rule to filter objects.

    Create a specific folder (for example, test/) in the bucket to store the objects with specified name suffixes. When configuring a lifecycle rule to delete the objects or transition their storage class, set the prefix to test/ to filter out these objects.

  • Method 2: Use the tag filter criteria of a lifecycle rule to filter objects.

    Add the same tag (for example, with the tag key of testobs and the tag value of test) to all objects with the specified name suffix in the bucket. When configuring a lifecycle rule, set the tag filter criteria to the tag key of testobs and the tag value of test to filter out these objects.