# Configuring the Number of File Versions to Retain for Backed Up Items

To reduce backup capacity in the Microsoft 365 plan level, you can configure the retention value for the backed up versions of items. Once the version has exceeded the set retention value, it will be deleted from media.

Users cannot delete data from OneDrive for Business apps when compliance lock is enabled on a storage policy copy. Users also cannot reduce the retention period for Microsoft 365 and server plans in this state. To delete data, disable compliance lock on the associated storage policy copy.

## Procedure

1. From the Command Center navigation pane, go to Manage > Plans.

   The Plans page appears.

2. Click the Office 365 plan associated with the app you want to configure.

   The plan details page appears.

3. In the Retention section, click Edit.

   The Edit retention settings dialog box appears.

4. Beside Retain backed up version for, enter the number of days, months, or years that you want to retain backed up files for OneDrive for Business.

   Note

   - The latest backed up version of the item, and versions of the item backed up within the set retention value, will be retained.

   - To delete older versions of items, the Retain deleted items for value should not be set to infinity.

   - By configuring the number of file versions to retain in the Microsoft 365 plan level, the value specified will be applied to OneDrive, SharePoint, and Teams apps.

5. Click Submit.

Once configured, only the versions that exceed the set number of days in the retention value for backed up versions will be deleted.

By default, version retention runs once every 15 days. If the retention value is set to 365, the applicable versions of the item will be retained for 365 days and will then be deleted after the retention thread runs. In the worst case, it will be deleted after 15 days.

×

Loading...