---
title: "ezgh objects buckets lifecycle"
description: "Show or change a bucket's lifecycle rules."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh objects buckets lifecycle

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh objects buckets lifecycle <command>
```

Lifecycle rules delete a bucket's objects after a number of days or on a date, for the whole bucket or under a prefix, and remove its unfinished multipart uploads. On a bucket with versioning they also delete noncurrent versions and remove expired delete markers.

Part of [`ezgh objects buckets`](/cli/reference/objects-buckets).

## Flags

This command also takes the [global flags](/cli/reference#global-flags).

## Subcommands

| Command | Description |
| --- | --- |
| [`ezgh objects buckets lifecycle delete`](/cli/reference/objects-buckets-lifecycle-delete) | Remove a bucket's lifecycle rules |
| [`ezgh objects buckets lifecycle get`](/cli/reference/objects-buckets-lifecycle-get) | Show a bucket's lifecycle rules |
| [`ezgh objects buckets lifecycle put`](/cli/reference/objects-buckets-lifecycle-put) | Replace a bucket's lifecycle rules |

Source: https://docs.ezghcloud.com/cli/reference/objects-buckets-lifecycle/index.mdx
