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

# Configure policy TTL

> Set default and maximum TTL values for environments at organization or project level in env zero, with automated alert emails sent before scheduled destruction.

When users create or redeploy an environment, they can set the environment's [*time-to-live*](https://docs.envzero.com/guides/admin-guide/environments.md#time-to-live-ttl). TTL Policies define the default and maximum *time-to-live* values for the environment.\
Those TTL limits do not apply to [admins](https://docs.envzero.com/guides/admin-guide/user-role-and-team-management/default-roles.md).\
*Administrators* can set the policies at [Organization](https://docs.envzero.com/guides/admin-guide/organizations.md) or [Project](https://docs.envzero.com/guides/admin-guide/projects.md) level.

> [!NOTE]
>
> **The Maximum TTL limit is relative to the **creation** time of the environment and not to the time of any deployment.**

![Organization level TTL policies configuration](https://mintcdn.com/envzero-b61043c8/t0QBBK-2O7wlTUvX/images/guides/policies-governance/organization_level_ttl_policies_configuration.png?fit=max\&auto=format\&n=t0QBBK-2O7wlTUvX\&q=85\&s=410b07675517460a64e5d210a2e2610c)

TTL policies on the Organization level

On the Project level, you can choose to use the organization's settings or override them.

![Project level TTL policies configuration](https://mintcdn.com/envzero-b61043c8/t0QBBK-2O7wlTUvX/images/guides/policies-governance/project_level_ttl_policies_configuration.png?fit=max\&auto=format\&n=t0QBBK-2O7wlTUvX\&q=85\&s=35fdf454240bbcf2856486d065477235)

TTL policies on the Project level

> [!NOTE]
>
> **An infinite time-to-live means the environment will never be destroyed automatically. This is useful for static environments like staging or production, but is not recommended for development environments.**

### Update Environment TTL

To update a specific environment's time-to-live definition, go to that environment's page, and in the info card, click on the pen icon near the Time Left label to update the TTL.

![Environment info card with pen icon next to Time Left label for updating TTL](https://mintcdn.com/envzero-b61043c8/t0QBBK-2O7wlTUvX/images/guides/policies-governance/48a9cab-screenshot_2023-06-04_at_17.png?fit=max\&auto=format\&n=t0QBBK-2O7wlTUvX\&q=85\&s=50d25890a8c7c5a8d19a16e33dc7211a)

> [!NOTE]
>
> **Notifications**
>
> Alert emails are automatically sent to the environment creator 3 times before the actual destroy command is triggered:
>
> * 2 Days
> * 2 Hours
> * 30 Minutes

## Next steps

* [Schedule recurring destroys with cron](https://docs.envzero.com/guides/admin-guide/environments/scheduling.md), which replaces the environment's TTL
* [See the other runtime policies](https://docs.envzero.com/guides/policies-governance/policies.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.