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

# Auto-delete

> Set maximum retention period for archived environments.

Control how long archived environments are retained before permanent deletion. Useful when:

* Reducing storage costs from abandoned environments
* Enforcing data retention policies
* Preventing accumulation of stale environments

Auto-delete is separate from [archive timing](/ona/organizations/policies/archive-timing). Enterprise admins can configure archive timing separately. Core organizations archive stopped environments after 3 days and auto-delete environments 4 days after archival. This policy sets the maximum time before archived environments are deleted.

## Configuration

Select retention period: 1 week, 2 weeks, 4 weeks, or Never.

<img src="https://mintcdn.com/gitpod-13c83c2b/Dhs2mX0BLguWvLBW/images/docs/flex/configuration/policy_auto_delete.png?fit=max&auto=format&n=Dhs2mX0BLguWvLBW&q=85&s=c6413f85ddb2645e1dd0237a8fd6e161" alt="Auto-delete policy" width="1414" height="704" data-path="images/docs/flex/configuration/policy_auto_delete.png" />

## Effect on users

Users can select equal or shorter retention periods. For example, if policy is "2 weeks", users can choose "1 week" or "2 weeks" but not "4 weeks".

See [Archive & auto-delete](/ona/environments/archive-auto-delete) for details.
