# Manage S3 lifecycle rules using the GUI

Using the GUI, you can:

* [Add a lifecycle rule](#add-a-lifecycle-rule)
* [View lifecycle rules](#viewing-ilm-rules)
* [Remove a lifecycle rule](#remove-a-lifecycle-rule)
* [Remove all lifecycle rules](#or-all-rules)

## **Add** a lifecycle rule

You can add a lifecycle rule to an object (bucket) that defines an expiration duration per object prefix and tags.&#x20;

**Procedure**

1. From the S3 buckets page, select the three dots of the required bucket, and select **Lifecycle Rules**.

<figure><img src="https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FUTmLVrOJk5CfsNFknyBh%2Fwmng_4_1_s3_add_life_cycle_rule_menu.png?alt=media&#x26;token=d4ef800b-b902-49d6-a6f6-ce9e91c27126" alt=""><figcaption><p>Lifecycle Rules menu</p></figcaption></figure>

2\. In the Add a Lifecycle Rule dialog set the following:&#x20;

* **Expiration days:** The minimum number of days before expiring the object.
* **Prefix:** The prefix of objects to apply the rule to.
* **Tags:** One or more object tags to apply the ILM policy rule. The tags are key-value pairs. Example: \<k1>=\<v1>.

3\. Select **Save**.

<figure><img src="https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FiDeLGHSpeTNdfNDONFwF%2Fwmng_4_1_s3_add_life_cycle_rule.png?alt=media&#x26;token=01ca97db-7e35-4993-8db6-be17f474e78b" alt=""><figcaption><p>Add a Lifecycle Rule</p></figcaption></figure>

## View lifecycle rules <a href="#viewing-ilm-rules" id="viewing-ilm-rules"></a>

You can view the lifecycle rules defined for a bucket and filter according to expiration days, prefixes, or tags.&#x20;

**Procedure**

1. From the S3 buckets page, select the three dots of the required bucket, and select **Lifecycle Rules**.

<figure><img src="https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FUOnBOwrmJG21ajnmjctK%2Fwmng_4_1_s3_lifecycle_rules.png?alt=media&#x26;token=3828c704-3109-4b90-964e-9f8219b60b02" alt=""><figcaption><p>View Lifecycle Rules</p></figcaption></figure>

## Remove a lifecycle rule

You can remove a specific lifecycle rule of a specified bucket if it is no longer required.

**Procedure**

1. From the S3 buckets page, select the three dots of the required bucket, and select **Lifecycle Rules**.
2. In the Lifecycle Rules dialog, select the three dots of the required rule and select **Remove**.

<figure><img src="https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FBzu6LC45Q3IKMOe8q1yw%2Fwmng_4_1_s3_remove_lifecycle_rule.png?alt=media&#x26;token=9c50cdd6-4ed4-4fa8-8357-ccfe63f20dd6" alt=""><figcaption><p>Remove a lifecycle rule</p></figcaption></figure>

## Remove all lifecycle rules

You can remove all the lifecycle rules of a specified bucket if they are no longer required.

**Procedure**

1. From the S3 buckets page, select the three dots of the required bucket, and select **Lifecycle Rules**.
2. In the Lifecycle Rules dialog, select **Clear all rules**.

<figure><img src="https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FqnfjJUO3v5M4dvk0lE87%2Fwmng_4_1_s3_lifecycle_rule_clear_all.png?alt=media&#x26;token=e4ab15e6-0ff1-4e78-9d08-a3174627ca74" alt=""><figcaption><p>Clear all lifecycle rules</p></figcaption></figure>
