# S3 lifecycle rules management

S3 lifecycle rules management in WEKA enable you to automate the organization and expiration of objects in S3 buckets by defining rules. These rules operate consistently across all objects in a bucket, regardless of the access protocol.

**Key features and considerations:**

* **Customizable object expiration:** Define rules to automatically expire objects based on prefixes or tags, providing precise control over data retention.
* **Extensive rule support:** Apply up to 1,000 rules per bucket to address diverse data lifecycle requirements.
* **Priority handling:** When multiple rules apply to the same object, the rule with the earliest expiration takes precedence. For example, if rule A applies to objects with a certain prefix and expires after 200 days, while rule B applies to a subset of the same prefix and expires after 30 days, then rule B takes precedence. As a result, rule A is only partially applicable.

**Related topics**

[Manage S3 lifecycle rules using the GUI](/4.4/additional-protocols/s3/s3-information-lifecycle-management/s3-information-lifecycle-management.md)

[Manage S3 lifecycle rules using the CLI](/4.4/additional-protocols/s3/s3-information-lifecycle-management/s3-information-lifecycle-management-1.md)


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
