# 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.

**Procedure**

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

<div data-with-frame="true"><figure><img src="https://1927137253-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0yXyIrnroN3zIG3qa4W3%2Fuploads%2Fgit-blob-3cd3ad6a29ce550318c83dd76d179e5334b9c595%2Fwmng_4_1_s3_add_life_cycle_rule_menu.png?alt=media" alt=""><figcaption><p>Lifecycle Rules menu</p></figcaption></figure></div>

2\. In the Add a Lifecycle Rule dialog set the following:

* **Expiration days:** The minimum number of days before the object is eligible for expiration. ILM processes the object shortly after this period based on its modified timestamp, but processing may be delayed if the queue is long.
* **Prefix:** The object prefix to which the rule applies. Wildcards are not supported.
* **Tags:** One or more object tags to apply the ILM policy rule. The tags are key-value pairs. Example: \<k1>=\<v1>.

3\. Select **Save**.

<div data-with-frame="true"><figure><img src="https://1927137253-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0yXyIrnroN3zIG3qa4W3%2Fuploads%2Fgit-blob-b8f76acef7c60f29af9d0fe593d121dca81f5a33%2Fwmng_4_1_s3_add_life_cycle_rule.png?alt=media" alt=""><figcaption><p>Add a Lifecycle Rule</p></figcaption></figure></div>

## 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.

**Procedure**

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

<div data-with-frame="true"><figure><img src="https://1927137253-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0yXyIrnroN3zIG3qa4W3%2Fuploads%2Fgit-blob-bda521c2489501c967e60f1cccaae4998d5cacb1%2Fwmng_4_1_s3_lifecycle_rules.png?alt=media" alt=""><figcaption><p>View Lifecycle Rules</p></figcaption></figure></div>

## 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**.

<div data-with-frame="true"><figure><img src="https://1927137253-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0yXyIrnroN3zIG3qa4W3%2Fuploads%2Fgit-blob-24cd8bec832b88d631c62202f52b0718eea3818b%2Fwmng_4_1_s3_remove_lifecycle_rule.png?alt=media" alt=""><figcaption><p>Remove a lifecycle rule</p></figcaption></figure></div>

## 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**.

<div data-with-frame="true"><figure><img src="https://1927137253-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0yXyIrnroN3zIG3qa4W3%2Fuploads%2Fgit-blob-2ed8f1a75483e44f01392d02eef166e7617cdac9%2Fwmng_4_1_s3_lifecycle_rule_clear_all.png?alt=media" alt=""><figcaption><p>Clear all lifecycle rules</p></figcaption></figure></div>
