> For the complete documentation index, see [llms.txt](https://docs.weka.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.weka.io/4.2/additional-protocols/s3/s3-information-lifecycle-management/s3-information-lifecycle-management.md).

# Manage S3 lifecycle rules using the GUI

This page describes how to manage information lifecycle (ILM) rules for S3 buckets 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://1970823310-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNqDzxyFrTFrLD641p0iH%2Fuploads%2FD5BNUDbbDoNYGO5Dz9g0%2Fwmng_4_1_s3_add_life_cycle_rule_menu.png?alt=media&amp;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://1970823310-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNqDzxyFrTFrLD641p0iH%2Fuploads%2FGvuUj77NK5sMeOTqpOGD%2Fwmng_4_1_s3_add_life_cycle_rule.png?alt=media&amp;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://1970823310-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNqDzxyFrTFrLD641p0iH%2Fuploads%2F8qKh7hcdbKNSWtTVG0sI%2Fwmng_4_1_s3_lifecycle_rules.png?alt=media&amp;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://1970823310-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNqDzxyFrTFrLD641p0iH%2Fuploads%2F35ZPXMGs3K39YcNfbA9D%2Fwmng_4_1_s3_remove_lifecycle_rule.png?alt=media&amp;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://1970823310-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNqDzxyFrTFrLD641p0iH%2Fuploads%2FuR9UdfToVQUGFZlL8ytc%2Fwmng_4_1_s3_lifecycle_rule_clear_all.png?alt=media&amp;token=e4ab15e6-0ff1-4e78-9d08-a3174627ca74" alt=""><figcaption><p>Clear all lifecycle rules</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.weka.io/4.2/additional-protocols/s3/s3-information-lifecycle-management/s3-information-lifecycle-management.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
