Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Power Platform environment retention policies help organizations manage inactive environments while giving administrators visibility and control over what is retained. Administrators can review last activity, configure inactivity thresholds for sandbox and production environments, and exclude environments that must remain available even when used infrequently.
Power Platform tracks qualifying user, maker, and administrator activity. An environment that exceeds its applicable inactivity threshold can become eligible for cleanup. Environment creators and administrators receive advance notifications before cleanup actions. Administrators can review activity information and exclude environments that need to be retained.
Prerequisites
Access to the Power Platform admin center with administrator permissions for the environments in your tenant.
Understand retention policies by environment type
Each environment type has its own default inactivity threshold and level of administrator control.
| Environment type | Planned default | Admin control |
|---|---|---|
| Sandbox | 180 days of inactivity | Adjust threshold, up to 365 days; exclude individual environments |
| Production | 270 days of inactivity | Adjust threshold, up to 365 days; exclude individual environments |
| Developer | Microsoft-managed (varies by managed status) | Refer to developer environment cleanup guidance |
| Default / Teams | Microsoft-managed | Refer to environment-specific guidance |
The following counts as an activity:
- User activity: Launching an app, executing a flow, interacting with an agent, or using the environment.
- Maker activity: Creating, editing, or deleting apps, flows, agents, or other resources.
- Admin activity: Environment operations and configuration changes.
- Automated activity: Scheduled flow runs and other qualifying automation.
Simply visiting the maker portal or opening a designer without qualifying activity doesn't necessarily reset inactivity. For current details, see Automatic deletion of Power Platform environments.
Review the last recorded activity
Review last activity to identify which environments are approaching their inactivity threshold. The last-activity date is an aggregated signal, not an activity audit log. It's updated periodically and may reflect background or automated operations. It doesn't necessarily identify the user or action responsible for the date.
- Sign in to the Power Platform admin center.
- Select Manage > Environments.
- Review the Last activity column for environments in your tenant.
- Open an environment to review its inactive duration and retention status.
If the date seems unexpected, assess known apps, flows, agents, and admin operations before making retention decisions.
Configure inactivity thresholds
Set the inactivity threshold for sandbox or production environments. A threshold set for an environment type applies across that type in the tenant unless an environment is excluded.
- In the Power Platform admin center, open Manage > Environments.
- Open Environment retention policies.
- Select Sandbox or Production and choose the editable threshold.
- Set the desired inactivity period and save.
Available values and exact labels should be checked against the released interface.
Exclude an environment from inactivity cleanup
Use an exclusion for disaster recovery, seasonal, demonstration, compliance, or other environments that must be retained without regular activity. You don't need to create artificial scheduled activity to keep an excluded environment.
An exclusion is different from extending the threshold to 365 days: it keeps the environment out of inactivity-based cleanup regardless of how long it remains unused.
- Open Manage > Environments and select the environment.
- On the environment details page, find the Environment retention card.
- Select Exclude from inactivity cleanup and confirm.
- Verify that the retention status shows the environment is excluded.
To re-enable cleanup, remove the exclusion after reviewing the environment and its last activity.
Respond to cleanup notifications
Environment creators and administrators are notified before cleanup actions. Use the advance review period to identify important environments, adjust policies, and apply exclusions.
The exact notification cadence, disable/delete stages, and recovery windows require final release validation; don't assume that inactivity always causes immediate irreversible deletion.